Examveda

What is the purpose of the 'if' statement in C#?

A. To execute a block of code repeatedly

B. To handle exceptions

C. To execute a block of code if a condition is true

D. To define a method

Answer: Option C


Join The Discussion

Related Questions on Control Flow Statements in C Sharp