In this, we are going to write a simple program to print ASCII values of user input variables in C.
#include <stdio.h>
int main()
{
// variable declaration
char ch;
printf("Enter a character: ");
// user input
scanf("%c", &ch);
printf("The ascii value of the ch variable is : %d", ch);
return 0;
}
//....Coded by JAIDEEP JAMBLE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP