Hi,
I am not getting Why Size of Class with a member function is 1 byte..While member function is 4 bytes in the following example.
class Test
{
public:
Test11()
{
int m = 0;
};
};
int main()
{
Test t1;
int J = sizeof(t1);
int K = sizeof(t1.Test11());
return 0;
}
Here J becomes 1 Byte and K becomes 4 bytes. If K=4, then why size of class is not 4 bytes instead it shows 1 Byte