Which loop in C is guaranteed to execute its body at least once?

Which loop in C is guaranteed to execute its body at least once?

  1. A.

    for

  2. B.

    while

  3. C.

    do-while

  4. D.

    if

Attempted by 1024 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…