What will be the output? #include<stdio.h> main() { char s[ ]="Hello"; int i; for(i=0;s[i];i++) printf("%c% | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What will be the output? #include<stdio.h> main() { char s[ ]="Hello"; int i; for(i=0;s[i];i++) printf("%c%

20th Jul 2017, 7:36 PM
Gauri Konde
Gauri Konde - avatar
2 Answers
+ 4
Compile Error I suggest pasting code in the description, not the title. Or as an alternative, paste the link to the code.
20th Jul 2017, 7:43 PM
Rrestoring faith
Rrestoring faith - avatar
+ 2
use this code: char s[ ]="Hello"; for(char c : s) cout<<c ;
22nd Jul 2017, 4:55 AM
Mahdi sg
Mahdi sg - avatar