?
How many times while loop condition is tested in the following C code snippets, if i is initialized to 0 in both the cases?
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);
while (i < n)
i++;
————-
do
i++;
while (i <= n);
Join the Discussion
Login to post a comment or share your explanation.
Login