I have this function in C:
static Node* newNode(void* e){
Node n={e,NULL,NULL};
return &n;
}
And while compiling I get the following warning that I would like to understand why it happens:
warning: function returns address of local variable [enabled by default]
What kind of dangers are lurking behind this?
Thank you