Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

How many times i value is checked in the following C code?
#include < stdio.h >
int main()
{
int i = 0;
do {
i++;
printf(“in while loop\n”);
} while (i < 3);
}

How many times i value is checked in the following C code?
#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

Answer: b

Join The Discussion