program to print the ASCII symbol in c-language
In this program, we will now print the all the ASCII values in c-programming.
In c-programing language, their are 256 ASCII character or ASCII values i,e form 0 to 256.
for example , the ascii value of 'A' is 65. and the ascii value of 'a' is 97.
/* print all the ascii code */
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
int i;
for(i=0;i<=256;i++){
printf("%d %c\n ",i,ch);
ch=ch+1;
}
getch();
}







No comments:
Post a Comment