Hi All
So can data include 5 sets of a,b,c correctly?Code:struct abc { int a; double b; unsigned int c; } struct abc* data; main int { ... data = (struct data*)malloc(5*sizeof(struct data)); ... }
Seems I get segmentation fault, when I include dynamic allocation instead of fixed array.