In a structure of node size of data is 4 bytes and the size of node* is 8 bytes while the size of node is 16 bytes. After 4+8=12 where is 4 extra bytes of node?
I do not understand anything about this.
struct node
{
int data;
struct node* next;
}s;
int main()
{
printf("node => %d \n",sizeof(s));
printf("node.data => %d \n",sizeof(s.data));
printf("node* => %d ",sizeof(s.next));
return 0;
}
/*OUTPUT-
node => 16
node.data => 4
node* => 8 */