Wonder if anyone can explain the difference between the following two expressions to allocate a node. Both expressions work perfectly well in my code, but I don't understand the reasoning for the second version.
Code:
node *temp = malloc(sizeof(node));
node *temp = (node *) malloc(sizeof(node));