## 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.

**Pick the odd statement?**

- Conditional operator Performs operation on three operands
- Modify operators come under Unary operator
- Address operator also called Unary operator
- All of above

### Answer :

Ans : 4 ; In case of given question, all the statements are correct.

**What increment operator does?**

- Increases the value by 1
- Increase the value by the size of the data type.
- Neither A nor B
- None of the above

### Answer :

Ans : 1 ; Either post-increment or pre-increment, increases the value by 1

**What is the difference between pre-increment & post-increment?**

- Pre-increment increases the value and executes
- Post-increment evaluates and then increases
- Both A and B
- Both increments before execute
- Both execute before the increment.

### Answer :

Ans : 3 ;

**Find out the correct sequence of operators according to priorities?**

- Arithmetic<relational
- Logical>relational
- Arithmetic>relational
- Relational>logical

### Answer :

Ans : 3 ; Arithmetic operators having higher priority than relational operators.

**Will the second expression execute if the first expression fails in case of logical AND operator?**

- Yes
- No
- Depends on compiler
- None of above.

### Answer :

Ans : 2 ; No, second expression will not execute if first one is false.

**Which operator having higher priority among > and <?**

- Greater than
- Less than
- Equal priority
- None of the above.

### Answer :

Ans : 3 ; All the relational operators having equal priority

**How many arithmetic operators supported by C-language?**

- 6
- 4
- 5
- 3

### Answer :

Ans : 5 ; Operators are +, -, *, / and %

**What does mod operator return after the evaluation?**

- Quotient
- Remainder
- Devisor
- None of above.

### Answer :

Ans : 2 ; Remainder.

**How many operands required for a conditional operator?**

- Two operands
- Single operand
- Three operands
- None of the above.

### Answer :

Ans : 3 ; Syntax : Condition ? Expression1 : Expression2.

**Which one executes first among arithmetic & relational operators in an expression?**

- Arithmetic operators
- Relational operators
- Both are having equal priority
- None of the above.

### Answer :

Ans : 1 ; Arithmetic operators having higher priority than relational operators.