C - Operators and Expressions Questions and Answers

Take Exam

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

11.  Assume c1 and c2 as char variables. if C1='A'; c2='2'' what ar the results of the statements putchar (C1 + 3) andputchar (C2 - 1))?

  • D, 1
  • C, 2
  • d, 1
  • c, 1
Show Answer Report

12.  Which is not a valid expression ?

  • +0XAB5
  • -0525
  • 15-
  • +a
Show Answer Report

13.  Which is not a valid expression ?

  • -p++
  • ++p--
  • ++6
  • ++x++
Show Answer Report

14.  Which is not a valid expression ?

  • ++(a + )
  • y--
  • -- x --
  • ++p+q
Show Answer Report

15.  The equality operator isrepresented by 

  • :=
  • .EQ.
  • =
  • ==
Show Answer Report

16.  Identify the logical operator. 

  • !
  • !=
  • ~
  • ==
Show Answer Report

17.  Identify the relational operator. 

  • &&
  • >
  • ||
  • !
Show Answer Report

18.  The number of bitwise operators in C is 

  • 3
  • 4
  • 5
  • 6
Show Answer Report

19.  The number of bitwise operators in C is 

  • 4
  • 5
  • 6
  • 7
Show Answer Report

20. The symbol of bitwise AND operator is 

  • <<
  • &=
  • &&
  • &
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test