+ 4

What will be the output of this code??

//Irony Output #include<stdio.h> #include<conio.h> void main() { int i; clrscr(); for(i=0; i<2; i++) printf("Siva Siva\n"); printf("By Pillar Siva"); getch(); }

17th Mar 2018, 3:09 PM
Shivadharshini Nagaraju
Shivadharshini Nagaraju - avatar
7 Answers
+ 6
@mohana annadhurai https://code.sololearn.com/cZP197US87Wo/?ref=app Run it..you can have some idea
17th Mar 2018, 5:54 PM
Shivadharshini Nagaraju
Shivadharshini Nagaraju - avatar
+ 5
@mohana annadhurai No..I think soo.. it not be like that, if we give the more than one statement within the looping or structure without { }, it will compile the first line only (under looping or structure)...you may have a try for that....
17th Mar 2018, 5:36 PM
Shivadharshini Nagaraju
Shivadharshini Nagaraju - avatar
+ 4
Siva Siva Siva Siva By Pillar Siva
2nd Jul 2018, 10:38 AM
Vimlesh Kumar
Vimlesh Kumar - avatar
+ 1
siva siva will be printed twice By Pillar Siva will be printed once
17th Mar 2018, 4:26 PM
‎ ‏‏‎Anonymous Guy
+ 1
compiler error, if for having more than 1 statement we have to put { } on it.. then it becomes Siva Siva By Pillar Siva Siva Siva By Pillar Siva
17th Mar 2018, 5:32 PM
mohana annadhurai
mohana annadhurai - avatar
+ 1
yeah may be right.. but I'm not sure.. give me some clearance code to run it..
17th Mar 2018, 5:40 PM
mohana annadhurai
mohana annadhurai - avatar
+ 1
yeah you have a very good talents in sentence framing.. â˜ș
17th Mar 2018, 5:56 PM
mohana annadhurai
mohana annadhurai - avatar