Answers for "how to get past 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 "how to get past warning: function returns address of local variable [-wreturn-local-addr]"

Code answers related to "C"

Browse Popular Code Answers by Language