Write a program all character display of its ASCII value.
/*Write a program which accepts a character and display its ASCII value. */
#include<stdio.h>
#include<conio.h>
main()
{
char c;
int i;
for(i=1;i<255;i++)
{
c=i;
printf("%d.ASCII CODE IS %d=%c\n",i,i,c );
}
No comments:
Post a Comment