This document discusses representing characters as ASCII values in C code. It shows code that declares a character variable ch and assigns it the value 'A', then uses printf to print ch's ASCII value of 65. It notes that A's ASCII value is 65, so printing ch prints A. The document also mentions that printf requires a format specifier like %c to print the character itself instead of its ASCII value.
1 of 2
Download to read offline
More Related Content
?????????????????(??????????)
1. -
char ch = ¡®A¡¯; printf(¡°%d¡±,ch);
?
Syntax Error ch
d
A
ASCII A
A ASCII
A