top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to print a semicolon(;) without using semicolon in C/C++?

+2 votes
439 views
How to print a semicolon(;) without using semicolon in C/C++?
posted Jul 26, 2017 by Ajay Kumar

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

1 Answer

+3 votes
 
Best answer

Use following statement in C program:
printf("%c", 59);

ASCII value of semicolon is 59.

answer Jul 26, 2017 by Harshita
Similar Questions
+2 votes

How will we print numbers from 1 to N without using loop or recursion?

+4 votes

Requirements:

1.No input should be processed, and the output should be in the form of 2 3 5 7 11 13 ... etc.
2. No reserved words in the language are used at all
3.The language should at least allow structured programming, and have reserved words (otherwise point 2 would be moot).

...