Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/articles/c-tutorials/)
-   -   All ASCII chracters generation (http://www.go4expert.com/articles/ascii-chracters-generation-t1512/)

shabbir 2Oct2006 13:23

All ASCII chracters generation
 
1 Attachment(s)

Introduction



I always like smilies and the ASCII characters can behave like good smileys and so I wrote a small utility to get all tha ASCII values of the characters and I can easily add them anywhere I prefer

The Code


Code: C

int i;
FILE *fp;
fp = fopen("c:\\code.txt","w");
for(i=0;i<256;i++)
{
    fprintf(fp,"%d\t%c\n",i,i);
    printf("%d\t%c\n",i,i);
}
fclose(fp);

Attachment contains the table of ASCII value to the corresponding characters.

aisha.ansari84 5Mar2008 18:56

Re: All ASCII chracters generation
 
i didnt get all the codes

rahul.mca2001 6Mar2008 13:14

Re: All ASCII chracters generation
 
i works fine


All times are GMT +5.5. The time now is 04:47.