- This topic has 1 reply, 2 voices, and was last updated 17 years, 2 months ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › How to Print Special characters( eg smiley face )?
How can we print the special characters in c language?
Hello
Printing the special characters using C language is quite easy. All you need is to know the ASCII value of that special character and print out that character on the screen.
Here is a small program that will print the special characters using c language. You just have to print the ASCII value of that special character.
1 2 3 4 5 6 7 8 9 10 11 12 | #include <br /> #include <br /> #include "process.h"<br /> void main (){<br /> int i=0;<br /> for(i=0;i<100;i++){//loop through first 100 ASCII characters<br /> printf("%c",i);//Print ASCII characters one by one<br /> printf("n");<br /> }<br /> getch();<br /> }<br /> |