What will be the output of the following C code?
#include <stdio.h>
int main()
{
int i = 0;
do {
i++;
printf("In while loop\n");
} while (i < 3);
}
#include <stdio.h>
int main()
{
int i = 0;
do {
i++;
printf("In while loop\n");
} while (i < 3);
}A. In while loop
In while loop
In while loop
B. In while loop
In while loop
C. Depends on the compiler
D. Compile time error
Answer: Option A

Join The Discussion