Printing last letter why?

Viewed 50
char ch = 'put';
cout << ch;

Output is t, why ??

I know that it is a character and not a string, but I want to increase my knowledge of why it is printing only the last letter and not the first letter, as the first 8 bits of first character that is p should be stored. But the output is t instead, why??

0 Answers
Related