Programming in C - Operators and Expressions

21. The statement
int **a;

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


22. The operation of a staircase switch best explains the

  • Option : D
  • Explanation :
    First from the truth table of the exclusive OR operation. If both the switches are off i-e 0, 0 then the light will be off i-e, 0. So, 0, 0 yields 0. If you switch on either of the two switches i-e. 0 1 or 1 0, the light will be on. So, 0 1 yields 1 (so does 1 0 ). Now, if you switch on the other one, which is currently off, it will be 1 1. This should yield a 0. Compare these results with the truth table of XOR.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *