Operators and Expressions – Multiple Choice Questions (MCQs)
-
-
38. Which operator has the lowest precedence among the following: =, +, *, !?
-
39. What is the associativity of the arithmetic operators (+, -, *, /)?
-
40. What is the associativity of the assignment operator (=)?
-
41. What is a compound assignment operator in C?
-
42. Which of the following is a valid compound assignment operator in C?
-
43. What is the value of the expression `(2 + 3) * 4`?
-
44. What is the value of the expression `2 + 3 * 4`?
-
45. Which operator is the ternary operator in C?
-
46. What is the syntax of the ternary operator in C?
-
47. What is the value of the expression `(5 > 2) ? 10 : 20`?
-
48. What is the value of the expression `(5 < 2) ? 10 : 20`?