Pages

Monday, December 18, 2017

Logical & and addition

What is going to be the output of this code?

  1 #include
  2 int main(void)
  3 {
  4     int a=10, b=12;
  5     int c;
  6     c = a&b + 65;
  7     printf("c=%d\n", c);

  8}

This code looks simple enough. Guess??

No comments: