C - Operators and Expressions

C - Operators and Expressions
41.  The associativity of logical AND, OR 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
Show Answer
42.  Which operator has the lowest priority ?
  • Assignment
  • Division
  • Comma
  • Conditional operator
Show Answer
43.  Which operator has the highest priority ?
  • ( )
  • ->
  • .
  • all the above
Show Answer
44.  Which operator has thehighest priority ?
  • + +
  • %
  • +
  • /
Show Answer
45.  Which operator has the lowest priority ?
  • &
  • +
  • <=
  • ||
Show Answer
46.  Which is executed quickly ?
  • p++
  • ++p
  • options a and b
  • p + 1
Show Answer
47.  p++ executes faster than p + 1 since
  • p uses registers
  • single machine instruction is required for p ++
  • options a and b
  • none of the above
Show Answer
48.  Of the following, which are logical operators ?
  • &&
  • !
  • ||
  • options a, b, and c
Show Answer
49.  In a C expression, how is a logical AND represented ?
  • ||
  • .AND
  • @@
  • &&
Show Answer
50.  Which of the following is a ternaryoperator ?.
  • ?:
  • *
  • sizeof
  • ^
Show Answer
Questions and Answers for Competitive Exams Various Entrance Test