Single, double quotes and sizeof('a') in C/C++
In C, character constants such as 'a'
have type int
, in C++ it's char
.
Regarding the last question, yes,
char ch = 'a';
causes an implicit conversion of the int
to char
.
because there is no char just intgers linked int a character
like a is 62 i guess
if you try printf("%c",62); you will see a character