What is the purpose of the 'if' statement in C++?
A. Executes a block of code repeatedly until a condition becomes true
B. Executes a block of code only once
C. Executes a block of code if a condition is true
D. Terminates the program
Answer: Option C

Join The Discussion