The size of empty class: one byte
Reason: As c++ standard compiler allow to  create an object of empty class, and this requires minimum memory. the minimum memory that can be allocated is one byte.

#include 
using namespace std;
class abc{};
int main()
{
abc *obj= new abc(); 
cout<<"size of abc is:"<<sizeof(abc)<<endl;
return 0;
}


Related Contents to follow