A character represented within single quotes denotes a character constant.
Here are some examples of it….
Character data type>> Any character belonging to the ASCII character set is considered as a character data type whose maximum size is 8 bits long.
The char is a keyword to represent the character data type in C++.
Character constants are always represented within single quotes.
Plain char, signed char and unsigned char are three distinct types.
A char, a signed char and an unsigned char occupy the same amount of memory space.
The classification of the char data type
Declaration of the character constants…
The char stands for the character data for declaring the character constants.
The declaration format of character data type is same as that of the declaration of the integer, floating or string constants.
The backslash() is used to denote non-graphic characters and other special characters for specific operations.
The following characters
‘a’>> alert a bell character
‘ ’>> new line
‘ ’>> horizontal tab
‘ ’>> carriage return
‘f’>> form feed
‘v’>> vertical tab
‘’’>> single quote