C - Operators and ExpressionsWhich 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;Check Answer
Step-by-Step SolutionSolution:Step 1: Recall multiplication operator in CThe multiplication operator in C is the asterisk symbol (*).Step 2: Check each optiona * b; uses '*', which is correct. Options B, C, D use invalid symbols for multiplication.Final Answer:a * b; -> Option BQuick Check:Multiply with * operator [OK]Quick Trick: Use * for multiplication in C [OK]Common Mistakes:Using 'x' instead of '*' for multiplicationUsing '.' or '&' mistakenlyMissing semicolon at end
Master "Operators and Expressions" in C9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More C Quizzes C Basics and Execution Environment - Why C is widely used - Quiz 8hard C Basics and Execution Environment - Writing first C program - Quiz 4medium Conditional Statements - If statement - Quiz 4medium Conditional Statements - If–else statement - Quiz 13medium Conditional Statements - Nested conditional statements - Quiz 8hard Input and Output - Using scanf for input - Quiz 15hard Input and Output - Using printf for output - Quiz 10hard Loops - Do–while loop - Quiz 14medium Variables and Data Types - Variable declaration and initialization - Quiz 15hard Variables and Data Types - Constants and literals - Quiz 15hard