Bird
0
0

Which of the following is the correct way to use the addition operator in C?

easy📝 Syntax Q12 of 15
C - Operators and Expressions
Which of the following is the correct way to use the addition operator in C?
Aint sum = 5 & 3;
Bint sum = 5 plus 3;
Cint sum = 5 + 3;
Dint sum = 5 - 3;
Step-by-Step Solution
Solution:
  1. Step 1: Recognize the addition operator syntax

    In C, the plus sign (+) is used to add numbers.
  2. Step 2: Check each option for correct syntax

    int sum = 5 + 3; uses '+' correctly; others use wrong symbols or words.
  3. Final Answer:

    int sum = 5 + 3; -> Option C
  4. Quick Check:

    Use '+' for addition [OK]
Quick Trick: Use '+' symbol for addition in C [OK]
Common Mistakes:
  • Writing 'plus' instead of '+'
  • Using '&' instead of '+'
  • Confusing subtraction '-' with addition '+'

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Quizzes