C program to print ASCII value of a character

#include<stdio.h>
#include<conio.h>
void main()
{
char a;
puts("Enter the character");
scanf("%c",&a);
printf("ASCII Value of %c = %d",a,a);
}

Comments