typedef struct {
int a;
int* b;
} foo_t;
int main (void){
foo_t foo;
int array[10];
foo.b= &array[0];
}
Here is a sample code. As you know, if we define a structure, this structure allocates a memory as its total capacity. In above case, it comes to me as if it overflows its capacity, this is right ? If I apply a static check, are there any problem with this? How does this work, please explain to me.