Bird
0
0

Which of the following is the correct syntax to multiply two integers a and b in C?

easy📝 Syntax Q12 of 15
C - Operators and Expressions
Which of the following is the correct syntax to multiply two integers a and b in C?
Aa x b;
Ba * b;
Ca . b;
Da & b;
Step-by-Step Solution
Solution:
  1. Step 1: Recall multiplication operator in C

    The multiplication operator in C is the asterisk symbol (*).
  2. Step 2: Check each option

    a * b; uses '*', which is correct. Options B, C, D use invalid symbols for multiplication.
  3. Final Answer:

    a * b; -> Option B
  4. Quick Check:

    Multiply with * operator [OK]
Quick Trick: Use * for multiplication in C [OK]
Common Mistakes:
  • Using 'x' instead of '*' for multiplication
  • Using '.' or '&' mistakenly
  • Missing semicolon at end

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Quizzes