-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
int k = 0;
while (k < 3)
{
k++;
printf("Hello\n");
while (k < 5)
{
k++;
printf("Interview Mania\n");
}
}
}
-
- Hello is printed 1 times, Interview Mania 1 times
- Hello is printed 4 times, Interview Mania 4 times
- Hello is printed 1 times, Interview Mania 4 times
- All of above
- None of these
Correct Option: C
Hello is printed 1 times, Interview Mania 4 times