It is not necessary to initialize the counter variable In C
It is not necessary to initialize the counter variable. In C++, it is allowed to define a variable in the initialization expression of the for loop. A While loop\'s body can contain multiple statements, as long as they are enclosed in braces. You may nest while and do-while loops, but you may not nest for loops. A for loop is a post- test loop
Solution
Answers:
21. False Reason:We need to initialize the counter variable as our loop will start counting from that point.
22.True Reason:In c++ compiler allow this to do.
23.True
24.False Reason:We can nest for loop also.
25.False Reason:For loop is a pretest loop.
Note:In case of any doubt,please ask the question,Thanks.
