Question: How many times will statement execute in the following code snippet? for ( int i = 3 ; i 1 ; i - - )
How many times will statement execute in the following code snippet?
for int ; ; i
for int ;;
cout "print line" endl;
times
The loop will run infinitely and hence the cout statement too
times
times
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
