Answers for "main.c:34:12: warning: function returns address of local variable [-wreturn-local-addr]"

C
0

warning: function returns address of local variable [-Wreturn-local-addr]

// Use memory allocation!!

char *str_to_ret = malloc (sizeof (char) * required_size);
Posted by: Guest on January-17-2021

Code answers related to "main.c:34:12: warning: function returns address of local variable [-wreturn-local-addr]"

Code answers related to "C"

Browse Popular Code Answers by Language