K
karthikbalaguru
Hi ,
I have the below structure.
struct check_struct{
double a;
char b;
};
My system reports the size of the above structure as 16 bytes.
I understand that there is some padding at the end of the above
structure and hence the size gets calculated to 16 bytes.
But, how to view the data/info that are padded using a debugger
like gdb or visual c++ debugger ?
I used watch windows but, it did not show the padded data .
Any ideas ?
Thx in advans,
Karthik Balaguru
I have the below structure.
struct check_struct{
double a;
char b;
};
My system reports the size of the above structure as 16 bytes.
I understand that there is some padding at the end of the above
structure and hence the size gets calculated to 16 bytes.
But, how to view the data/info that are padded using a debugger
like gdb or visual c++ debugger ?
I used watch windows but, it did not show the padded data .
Any ideas ?
Thx in advans,
Karthik Balaguru