Given
struct Foo {
uint32_t a;
uint32_t b[];
};
What is sizeof(Foo)? Is it implementation-defined or undefined behaviour? Does the answer differ for C vs C++?
Given
struct Foo {
uint32_t a;
uint32_t b[];
};
What is sizeof(Foo)? Is it implementation-defined or undefined behaviour? Does the answer differ for C vs C++?