Empty declaration of a class holds memory 1 byte

Why empty declaration of a class holds memory 1 byte. Explain briefly?

Questions by Rajesh kumar777

Showing Answers 1 - 1 of 1 Answers


  • Aug 5th, 2012

Different objects must have different addresses.

  1. Something *somethigns = new Something[2];

  2. if(somethings[0]==somethings[1])

  3.     exit(-1); // This line must never run.

  4. delete[] somethings;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions