Q. Which of the following is the correct syntax for a for loop in C++?
β
Correct Answer: (A)
for(int i=0; i<5; i++)
Explanation: The correct syntax for a 'for' loop in C++ is 'for(initialization; condition; increment)'.