Empty class in c++

class Empty{ };
int main() {
  Empty a, b;
                if (&a == &b) cout << "impossible: report error to compiler supplier";
 
                Empty* p1 = new Empty;
                Empty* p2 = new Empty;
                if (p1 == p2) cout << "impossible: report error to compiler supplier";
 
   return 0;
}
What will be the o/p and why? 

Comments

Popular posts from this blog