CP I/O Q23

0. main( )
   (
   int a = 5, b = 2;
   printf("%d", a+++b);
   }

  • Option : B
  • Explanation :
    The compiler will tokenize a + + + b as a, + +, b. So, a + + b is equivalent to a + + + b, which evaluates to 7
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 *