#include <stdio.h> #include <stdlib.h> #include <string.h> struct Node { int cargo; }; struct Node* create_node() { return &node; } int main() { return 0; }
Standard input is empty
prog.c: In function ‘create_node’: prog.c:12:45: error: invalid initializer prog.c:13:5: error: function returns address of local variable [-Werror] cc1: all warnings being treated as errors
Standard output is empty