Home Forums C Programming How to Print Special characters( eg smiley face )? Reply To: How to Print Special characters( eg smiley face )?

#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.

#include 
#include
#include "process.h"
void main (){
int i=0;
for(i=0;i<100;i++){//loop through first 100 ASCII characters
printf("%c",i);//Print ASCII characters one by one
printf("n");
}
getch();
}