0

Doubt in "C" regarding char

I am having a doubt about the character part. If char ch=258 and if we print %d and %c for ch what will be the output for %c? For %d I got 2 and for %c I am getting an error! Please help me out and clarify my doubt!

4th May 2021, 7:59 AM
Ujwal Sai Simha Y
Ujwal Sai Simha Y - avatar
2 Respostas
+ 4
a char can only store values for 0 to 255 cause its reserve only one byte !!
4th May 2021, 8:04 AM
Alpha Diallo
Alpha Diallo - avatar