Hi, why is the size of the empty class is one class Demo { }; void main() { int size; size=sizeof(Demo); cout << " Size oF Class:" << size; } OutPut :- Size oF Class: 1 Can anyone please tell me the reason ?? why its 1.
Hi, why is the size of the empty class is one class Demo { }; void main() { int size; size=sizeof(Demo); cout << " Size oF Class:" << size; } OutPut :- Size oF Class: 1 Can anyone please tell me the reason ?? why its 1.