Answers for "function returns address of local variable [-wreturn-local-addr] fix solution"

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 "function returns address of local variable [-wreturn-local-addr] fix solution"

Code answers related to "C"

Browse Popular Code Answers by Language