I find this thing a little tricky and recursive as to how sizeof operator calculates the size of one node in a linked list. I've the below structure as one node in list for example:
struct ll_core
{
char c_ll;
struct ll_core * next;
};
printf("size of struct ll_core = %d\n\n",sizeof(struct ll_core));
it gives me an answer 8. Now how does it decides the size 8, because to add sizes of individual struct element it agains encounter the same struct ll_core. So it's a kind of loop or recursion while calculating size. Please excuse me and let me know if I'm missing any basic thing in my head while thinking like this.