C++ MQCs with Explanation (CHAPTER : POINTERS, VIRTUAL FUNCTIONS AND POLYMORPHISM )

The declaration statement int* p1, p2 ;

  1. declares two pointer variables p1 and p2
  2. declares two integer variables p1 and p2
  3. declares p1 as a pointer variable and p2 as an integer variable
  4. is illegal because of blank space between * and p1



Answer: 
Option a: declares two pointer variables p1 and p2

Explanation Here

Post a Comment

0 Comments