ASCII Values – C:
#include<stdio.h> #include<conio.h> int main() { char ch; printf("Enter a single character: "); scanf("%c", &ch); printf("The ASCII value of %c is %d", ch, ch); return 0; }
Coder's Space
#include<stdio.h> #include<conio.h> int main() { char ch; printf("Enter a single character: "); scanf("%c", &ch); printf("The ASCII value of %c is %d", ch, ch); return 0; }