I have the following:
typedef struct node{
long long int data;
struct node *next;
}node;
However, when I tried to store a big number like:
long long int finalVal =139752196320796;
node *newNode = (node*)malloc(sizeof(node));
newNode->data = finalVal;
newNode->next = NULL;
I try to print out the value of the node and get:
-1744523748
Any tips as to why this happens?