Loops
- What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 0, L = 0;
for (k = 0; k < 3; k++)
{
for (L = 0; L < 5; L++)
{
if (k > 1)
break;
}
printf("Interview Mania\n");
}
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
"Interview Mania" is printed 3 times
- Which keyword is used to come out of a loop only for that iteration?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
continue