M
mithun
Hi,
In the following code snippet ....
#include<stdio.h>
#include<iostream>
using namespace std;
class A
{
int a,b;
char c,d;
};
main()
{
A *a = new A();
cout<<"\n"<<sizeof(a);
}
The following code gives output 4 as 'a' is pointer. I want to get the
complete size of object allocated ie 10. How can this be done.
-Mithun
In the following code snippet ....
#include<stdio.h>
#include<iostream>
using namespace std;
class A
{
int a,b;
char c,d;
};
main()
{
A *a = new A();
cout<<"\n"<<sizeof(a);
}
The following code gives output 4 as 'a' is pointer. I want to get the
complete size of object allocated ie 10. How can this be done.
-Mithun