A
Q. What will be the output of the following C code?
Code:
#include <stdio.h>
int main()
{
int i = 0;
do
{
i++;
if (i == 2)
continue;
printf("In while loop ");
} while (i < 2);
printf("%d
", i);
}
int main()
{
int i = 0;
do
{
i++;
if (i == 2)
continue;
printf("In while loop ");
} while (i < 2);
printf("%d
", i);
}
- Correct Answer - Option(A)
- Views: 31
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.