AD4BP

Write a programe convert Character into its ASCII value.

#include< stdio.h >
#include< conio.h >
void main( )
{
char c;
clrscr( );
printf("Enter Character: ");
scanf("%c",&c);
printf("Character %c 's ASCII no=%d",c,c);
getch( );
}


Output:-
Enter Character: N
Character N 's ASCII no=78