1.

Your friend Arun asked you that is there any loop that will do three things, initialization, testing and updation. What is your answer. Explain?

Answer»

Yes. There is only one loop namely for loop that will do this three things. The other loops will do the checking only, initialisation must be do before the loop and updation must be inside the loop. 

The syntax of for loop is given below

 For(initialisation; testing; updation)

Body of the for loop; 

}



Discussion

No Comment Found

Related InterviewSolutions