Hi,
I came across following piece of code:
Ouput :Code:typedef struct{
int a;
char ch;
}statusrecord;
typedef struct{
int b;
int c;
statusrecord stRec[];
} rsp;
int main()
{
rsp Francis;
printf("%d",sizeof(Francis));
}
8 // using Visual C++
1. Why doesn't storage space for the structure stRec is allocate?how does the memory model look like?
2. How does one declare a dynamic structure?
Thanks