Sail E0 Webinar
Question
Number of times while loop condition is tested is, i is initialized to 0 in both case.

      while (i < n)

          i++;

     -------------

     do

          i++;

     while (i

Options:
A .  n, n
B .  n, n+1
C .  n+1, n
D .  n+1, n+1
Answer: Option D


none



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers