How many times 'save trees' will be displayed by C++ loop? do { cout << "save…

HTET 2022Modified — slightly modified from the official paper; see the solution

How many times 'save trees' will be displayed by C++ loop?

do
{
    cout << "save trees";
} while(0);
  1. A.

    One

  2. B.

    Two

  3. C.

    Zero

  4. D.

    Infinite

Attempted by 611 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rssb Senior Computer Instructor

Loading lesson…