-->

Header Ads

WAP to print all characters ASCII value:

C Program (code)
#include

#include

void main()

{

clrscr();

int i=60;// u can put i=0

printf("----:::ASCII Code:::---- \n");

printf("character----ASCII VAlue\n");


while(i<=105) //u can put maximum i= 255

{

printf("  %c ------> %d\t",i,i);

i++;

}

getch();

}

Output of c program:

No comments

Powered by Blogger.