In the following code segment, how many times is the for loop executed?
for (i = prod = 0; (prod = i * i <=>
printf(“hello\n”);
(A) 4, (B) 5, (C) 6, (D) infi nite.
For a nested loop, a break in the innermost loop (A) terminates the program, (B) terminates
the innermost loop, (C) terminates all loops, (D) none of these.
=>
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here