Vidyalelo
C Programming · Q99

Control Structures

Programming · C Programming · question 99

Q99

How many times while loop condition is tested in the following C code snippets, if i is initialized to 0 in both the cases? while (i < n) i++; ————- do i++; while (i <= n);

A.
n, n
B.
n, n+1
C.
n+1, n
D.
n+1, n+1
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board