Home › Forums › C Programming › How to Print Special characters( eg smiley face )? › Reply To: How to Print Special characters( eg smiley face )?
September 19, 2007 at 10:10 am
#3254
msaqib
Participant
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 /> |