Strings are arrays of characters in C. In this post, we’ll see how to return strings from functions. One way is by passing the address of the string to the function and the second one is by using dynamic memory allocation.
Computer Science learning blog