Multiple choice

Which of the following is the correct method of using the 'if statement' in c#?

  1. if expression text if true

  2. expression if# text if true

  3. #if expression
    text-if-true

  4. #endif

  5. #elif

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is the correct method of using if statement as it requires #if directive to be used.