Finding ASCII value of a char in C

Q. How to find ASCII value in C

#include<stdio.h>
#include<conio.h>
void main ()
{
int a,b;
clrscr();
printf(“Enter digit to get it’s character value= “);
scanf(“%d”,&a);
printf(“The character vlaue is\t%c”,a);
getch();
}

After Running program 🙂

Leave a Reply