Write a C program to print ASCII value of a character
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Program to get ASCII of a character in C
Output
Here, we just read a character and print it’s using %d format specifier, which is used to print an integer value. When we print the character value using %d the ASCII code prints on the screen.
Since, this is a very simple program for beginners, still you liked the program and its explanation, please share your comments.
need an explanation for this answer? contact us directly to get an explanation for this answer