Hello,
when determining sizeof structs, does the sizeof() interprets char *string[10] as size of one pointer or size of 10 characters?
Printable View
Hello,
when determining sizeof structs, does the sizeof() interprets char *string[10] as size of one pointer or size of 10 characters?
It returns the size of 10 pointers to char.
so lets say natural alignment of pointer is 4, total size of the char *string[10] = 40?
Yes.
thanks