as we allocate the space for node in linked list using malloc() so how many bytes malloc allocate for the 1 node i.e. actual value of malloc allocates in ram like i write this code.
so what is size of a node of linked list?
#include<stdio.h>
struct node
{
int data;
struct node *link;
};
int main()
{
struct node *temp;
temp = (struct node *)malloc(sizeof(struct node));
printf("%d",sizeof(struct node));
}
what the printf prints and why ?