C++ MQCs with Explanation (CHAPTER 3: TOKENS, EXPRESSIONS AND CONTRAL STRUCTURES)

Which of the following statements is invalid?

  1. int p = new int ;
  2. int *p = new int ;
  3. int *p = new int [10] ;
  4. int *p = new int [m] [10] ;



Answer: 
Option a: int p = new int ;

Explanation Here

Post a Comment

0 Comments