integer take four bytes, char takes one byte and float take four bytes. Total are three variables that occupy nine bytes But when I store these three variables through the structure, the program size is 12 bytes. I do not understand what does store in 3 bytes of memory
Code:
#include <stdio.h>
struct p
{
int x;
char y;
float z;
}v;
int main()
{
printf("size of structure = %d", sizeof(v))
return 0;
}