I have this code snippet and I have no idea why it's working in my code.
mft_fragment *pfrag = malloc(sizeof(mft_fragment));
printf("size2:%lu\n", sizeof(mft_fragment));
pfrag[23].fragment_count = 10;
printf
prints 8 bytes. Shouldn't I be getting segmentation fault or something like that?