Hi,
I following structure
Assume int is 4 bytes and char is 1 byte. I know the size of structure without pointers inside. But I am not sure with pointers and function pointers. Is it 4+4+4(12) or something else??Code:typedef struct
{
UINT32 abc;
int (*f)(int a, intb);
char *ptr;
} my_struct;
main()
{
my_struct myParams;
sizeof(myParams);
}
Thanks in advance.
Johnny