✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What is wrong with the following code?
struct node* createNode(int x) {
struct node n;
n.data = x;
n.next = NULL;
return &n;
}