Answers for "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 "warning: function returns address of local variable [-Wreturn-local-addr]"

Code answers related to "C"

Browse Popular Code Answers by Language