C - Operators and Expressions Questions and Answers
Operators and expressions are the core of performing calculations and logic in C programs. This section features C programming questions and answers focusing on arithmetic, relational, logical, bitwise, and assignment operators. Designed for TCS, Infosys, and Capgemini aspirants, these MCQs test both concept clarity and coding accuracy. Practicing these C Operators and Expressions questions with answers helps you strengthen your understanding of how C executes and evaluates expressions—essential for both programming interviews and technical exams.
C - Operators and Expressions
Showing 10 of
65 questions
31. Identify the valid expression (s).
- a = 0
- a = b= 0
- a% = (x % 10)
- all the above
32. Explicit type conversion is known as
- casting
- coercion
- options a and b
- upward type conversion
33. Which expression yields correct value for the expression 1/3 ?
- 1. / 3
- (float) 1/3
- options a and b
- float (1/3)
34. The associativity of ++ operator is
- right to left
- left to right
- a for arithmetic expression and b for pointer expression
- a for pointer expression and b for arithmetic expression
35. the associativity of assignment operators is.
- right to left
- left to right
- a for arithmetic expression and b for pointer expression
- a for pointer expression and b for arithmetic expression
36. The associativity of comma operator is
- right to left
- left to right
- option a for arithmetic expression and b for pointer expression
- option a for pointer expression and b for arithmetic expression
37. the associativity of ! operator is
- right to left
- left to right
- option a for arithmetic expression and b for pointer expression
- option a for pointer expression and b for arithmetic expression
38. The associativity of ~ opeator is
- right to left
- left to right
- option a for arithmetic expression and b for pointer expression
- option a for pointer expression and b for arithmetic expression
39. the associativity of indirection operator is
- right to left
- left to right
- option a for arithmetic expression and b for pointer expression
- option a for pointer expression and b for arithmetic expression
40. The associativity of bitwise AND, OR XOR is
- right to left
- left to right
- option a for arithmetic expression and b for pointer expression
- option a for pointer expression and b for arithmetic expression