1.

1. statement takes the program control out of the loop even though the test expression is true.2. Consider the following code fragment. How many times will the character be printed on the screen? for (i=0; i< 10; i =i+2); cout<<“*”; }

Answer»

1. break or goto 

2. Only one time because of semicolon(;) in the end of the for(i=0;i<10;i=i+2);



Discussion

No Comment Found

Related InterviewSolutions