Home » C Programming » Loops » Question
  1. How many times while loop condition is tested in the following C code snippets, if k is initialized to 0 in both the cases?
    while (k < m)
    k++;
    ————-
    do
    k++;
    while (k <= m);
    1. m+1, m
    2. m+1, m+1
    3. m, m
    4. m, m+1
    5. None of these
Correct Option: B

m+1, m+1



Your comments will be displayed only after manual approval.