Write a program to print the ASCII value of a character input by the user.
#include <stdio.h> int main() { char char1; printf("Enter char: "); char1 = fgetchar(); getchar(); printf("\nASCII value: %d", char1); }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment