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\n", i);
    }
  • (A) In while loop 2
  • (B) In while loop in while loop 3
  • (C) In while loop 3
  • (D) Infinite loop
πŸ’¬ Discuss
βœ… Correct Answer: (A) In while loop 2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
206
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Monu Rathod
Publisher
πŸ“ˆ
97%
Success Rate