Page 1 of 1

How many times i value is checked in the following C code?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#include <stdio.h> int main() { int i = 0; do { i++; printf("in while loop\n"); } while (i < 3); }
a) 2
b) 3
c) 4
d) 1