Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.
What is the Size of an Empty Class
Ex:
class base {
};
main()
{
printf("Size of the Empty Class is: %dn", sizeof(base));
}
It gives output: Size of the Empty Class is: 1
I have not got the reason / logic behind this.
Can anyone help me?
Profile Answers by navneetgoyal2000 Questions by navneetgoyal2000
Questions by navneetgoyal2000 answers by navneetgoyal2000
Related Answered Questions
Related Open Questions