C Programming :: Control Instructions - Discussion
Home > C Programming > Control Instructions > MCQs Questions Discussion
10 / 33
How many times "Nagarro" will get printed?
#include<stdio.h>
int main()
{
int x;
for (x=-1; x<10;x++)
{
if (x<5)
continue;
else
break;
printf("Nagarro");
}
return 0;
}
#include<stdio.h>
int main()
{
int x;
for (x=-1; x<10;x++)
{
if (x<5)
continue;
else
break;
printf("Nagarro");
}
return 0;
}
AInfinite times
B11 times
C0 times
D10 times
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
0 times as due to continue statement the lower part of loop is ignored and next iteration continue when x is greater than or equal to 5 else part of loop execute and due to the break statement the loop terminates
Read Full Answer
Report Error
Please Login First Click Here