Eventually stored in the computer is a number of binary, we think of it as an integer when it is an integer, as a char by the ASCII code, one by one, to convert the numeric values to characters.
Char initialization character output #include <stdio.h>
int main () {char s = ' a '; printf ("%c", s); GetChar (); return 0; }
When you assign a value, the literal constant character needs to be included in two single quotes (' "). Be sure to use single quotes when assigning values.
Jobs: #include <stdio.h> int main () {
printf ("%c", ' \ t '); printf ("%c", ' \ \ \ '); printf ("%c", ' \? '); printf ("%c", ' \? '); printf ("%c", ' \? '); printf ("%c", ' \ n '); printf ("%c", ' \ t '); printf ("%c", ' \ \ \ '); printf ("%c", ' \ \ \ '); printf ("%c", ' \ \ \ '); printf ("%c", ' \ \ \ '); printf ("%c", ' \ \ \ '); printf ("%c", ' a ');
GetChar (); return 0;
}