top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to print a name without using character in C?

0 votes
425 views
How to print a name without using character in C?
posted Jun 23, 2017 by Priya Kanojiya

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

What you are looking is how to print a character without character i.e simply by asci number.
See the following program which print a number and correspondin

int main()
{
    int i;
    i=97;
    do
    {
        printf("%d %c \n",i,i);
        i++;
    }
    while(i<=122);
    return 0;
}

Now we can get the number for each character, see how I printed my name -

int main()
{
   printf("%c%c%c%c%c",115,97,108,105,108);
   return 0;
}
answer Jun 23, 2017 by Salil Agrawal
...