+ 2

What is the output?

switch(printf("hi-") case 1:printf("a");break; case 2:printf("b");break; case 3:printf("c");break; default:printf("default");

15th Feb 2019, 3:50 PM
Anshuman Sethia
Anshuman Sethia - avatar
2 ответов
+ 2
printf returns length of printed string so output will be hi-c if you fix errors
15th Feb 2019, 6:49 PM
Mert Yazıcı
Mert Yazıcı - avatar
+ 1
Thanks
16th Feb 2019, 6:31 AM
Anshuman Sethia
Anshuman Sethia - avatar