+ 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(); }
7 Answers
+ 6
@mohana annadhurai
https://code.sololearn.com/cZP197US87Wo/?ref=app
Run it..you can have some idea
+ 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....
+ 4
Siva Siva
Siva Siva
By Pillar Siva
+ 1
siva siva will be printed twice
By Pillar Siva will be printed once
+ 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
+ 1
yeah may be right.. but I'm not sure.. give me some clearance code to run it..
+ 1
yeah you have a very good talents in sentence framing.. âș