-->

Header Ads

WAP to print ASCII value of any character:

C Program (code)

#include<stdio.h>

#include<conio.h>

void main()

{

clrscr();

char ch;

printf("program to print ascii value of any character: \n");

printf("Enter any character :\n");

scanf("%c",&ch);

printf("Ascii value of entered character : %c = %d",ch,ch);



getch();

}
Output of c program:


No comments

Powered by Blogger.