1
char a;
a='hii';
printf("%c",a);

I expect the output of printf("%c",a) to be h, but the actual output is i how?

melpomene
  • 84,125
  • 8
  • 85
  • 148
Geek
  • 11
  • 1
  • Implementation defined behavior. https://stackoverflow.com/questions/7459939/what-do-single-quotes-do-in-c-when-used-on-multiple-characters – Retired Ninja Jul 20 '19 at 17:42

0 Answers0