adplus-dvertising
frame-decoration

Question

Which of the given statment is true about the given code ?
int main()
{
 int i = 0;
 for ( ; i < 5 ; )
 { 
   if (i < 5)
     printf("Hello", i++);
   else
     continue;
   printf("World");
 }
 return 0;
}

a.

It will print hello 5 times followed by World one time

b.

It will print helloWorld 5 times

c.

It will print helloWorld infinite times

d.

Compilation Error

Answer: (b).It will print helloWorld 5 times

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the given statment is true about the given code ?