Say I've got this type:
struct Bitmap
{
int w, h, *b;
};
I am initializing it like this:
int w = 7, h = 4;
struct Bitmap bmp = {w, h, calloc(bmp.w * bmp.h, sizeof(*bmp.b))};
Is it guaranteed that the compiler will initialize the struct
sequentially? Can I be sure that by the time the bmp.b
field is being initialized the bmp.w
and bmp.h
fields are already initialized?