D
dharmesh Gupta
Hi All,
the following program gives out put as
4 1
but i am unable to understand it , coulf anyone help me out
Thanks
Dharmesh
//////////////////////////////////////////
#include <stdio.h>
class x
{
public:
virtual fn1();
};
class y
{
public:
fn1();
};
void main()
{
int a,b;
a = sizeof(x);
b = sizeof(y);
printf("%d\t %d ",a,b);
}
/////////////////////////////////////////////////////////
the following program gives out put as
4 1
but i am unable to understand it , coulf anyone help me out
Thanks
Dharmesh
//////////////////////////////////////////
#include <stdio.h>
class x
{
public:
virtual fn1();
};
class y
{
public:
fn1();
};
void main()
{
int a,b;
a = sizeof(x);
b = sizeof(y);
printf("%d\t %d ",a,b);
}
/////////////////////////////////////////////////////////