struct Node
{
char c;
double d;
int s;
} Node;
I recently started studying linked lists and in between just trying random things to explore. I tried getting size of the node at first i thought it would be 13 later on googling i found there is concept of padding and data alignment.
So My system has 64bit processor and according to that i calculated (1(char) + 7(for padding) + 8(double) + 4(int) ) = 20
So why it comes out be 24.
Also as you can see iam beginner can you provide some references where i can read more fundamental stuff or things which will be helpful.
I appreciate any advice you give. Thanks