C - Operators and Expressions

C - Operators and Expressions
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
12.  Which is not a valid expression ?
  • +0XAB5
  • -0525
  • 15-
  • +a
Show Answer
13.  Which is not a valid expression ?
  • -p++
  • ++p--
  • ++6
  • ++x++
Show Answer
14.  Which is not a valid expression ?
  • ++(a + )
  • y--
  • -- x --
  • ++p+q
Show Answer
15.  The equality operator isrepresented by 
  • :=
  • .EQ.
  • =
  • ==
Show Answer
16.  Identify the logical operator. 
  • !
  • !=
  • ~
  • ==
Show Answer
17.  Identify the relational operator. 
  • &&
  • >
  • ||
  • !
Show Answer
18.  The number of bitwise operators in C is 
  • 3
  • 4
  • 5
  • 6
Show Answer
19.  The number of bitwise operators in C is 
  • 4
  • 5
  • 6
  • 7
Show Answer
20. The symbol of bitwise AND operator is 
  • <<
  • &=
  • &&
  • &
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test