N
news.fe.internet.bosch.com
Hi All ,
I u find out size of struct , does it considers paddding chars into
consideration
struct A
{
char c;
int i;
};
struct B
{
int i;
char c;
}
we see that for alignment some bits are added in case of struct A, but not
in case of struct B
A a ;
sizeof(a);
B b;
sizeof(b);
Will this be same in both cases
TIA
Mohan
does it give
I u find out size of struct , does it considers paddding chars into
consideration
struct A
{
char c;
int i;
};
struct B
{
int i;
char c;
}
we see that for alignment some bits are added in case of struct A, but not
in case of struct B
A a ;
sizeof(a);
B b;
sizeof(b);
Will this be same in both cases
TIA
Mohan
does it give