Hi,
i tired the following code in
c & c++
int main()
{
struct dum
{
// nothing here
}
printf("%d",sizeof(struct dum));
return 0;
}
the out put is 0
int main()
{
struct dum
{
// nothing here
}
cout<<sizeof(struct dum);
return 0;
}
the out put is 1.
i dont understand why is it so?
any idea?