top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to print a name without using character in C?

0 votes
87 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
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...