C++ MQCs with Explanation.( CHAPTER 2: BEGINNING WITH C++)

For declaring the variables a and b, which of the following declaration statements is incorrect??

  1. int a, b; // Declaration
  2. int a, /* Declaration*/ b;
  3. int a, // Declaration // b;
  4. int a, b; // Declaration //



Answer: 
Option c: int a, // Declaration // b;

Explanation Here

Post a Comment

0 Comments