C Objective Interview Questions – Operators

These C Objective Interview Questions post providing basic, intermediate and Hard level examples in C Operators. The practice of these examples makes you good in C programming.


Logical operator belongs to which classification of operators?

  1. Unary operators
  2. Binary operators
  3. Ternary operators
  4. Both A and B.

Answer :

Ans : 4 ; Logical-AND and Logical-OR are Binary operators but Logical-NOT is unary operator

What XOR operator returns when a and b are false bits?

  1. 0
  2. 1
  3. True
  4. False.

Answer :

Ans : 1 ; Returns false bit as 0

Which of the following operator having least priority?

  1. &&
  2. *
  3. <=
  4. =

Answer :

Ans : 4 ; Assignment operator always having least priority in operators

Which of the following is not compound assignment operator?

  1. /=
  2. +=
  3. ==
  4. &=

Answer :

Ans : 3 ; It is equality operator in relational operators

What would be the result of the expression (-13%5)?

  1. 3
  2. 2
  3. -2
  4. -3

Answer :

Ans : 4 ;  Remainder is -3

A+=1 is equivalent to which of the following statement?

  1. A+1
  2. A++
  3. A=A+1
  4. Both b and c.

Answer :

Ans : 4 ; Option-1 will not modify the value of A , hence that is wrong option

How many ways can we use ‘&’ operator?

  1. As address operator
  2. As bitwise operator
  3. Both address & bitwise operator
  4. None of the above.

Answer :

Ans : 3 ; We can use in 2 ways

In case of which operator the next condition will be evaluated only if the previous condition is true?

  1. ||
  2. &&
  3. Both a and b
  4. Neither a nor b

Answer :

Ans : 2 ; In case of logical-AND operator, second expression executes only if first one is true

C Technical Interview Questions – Control Statements

Share this