ASCII stands for American Standard Code for Information Interchange. There are 128 standard ASCII characters from 0 to 127. Extended ASCII characters adds more 128 values and goes to 255. Following is a program of printing ASCII value using C language.
#include<stdio.h>
int main()
{
int ch;
for(ch = 0; ch <= 255; ch++)
{
printf("\nASCII value of character %c : %d",ch,ch);
}
return 0;
}
int main()
{
int ch;
for(ch = 0; ch <= 255; ch++)
{
printf("\nASCII value of character %c : %d",ch,ch);
}
return 0;
}
0 comments :
Post a Comment