C programming does not allow to return an entire array as an argument to a function. However, you can return a pointer to an array by specifying the array's name without an index.
IS function can return array?
So in simple words, Functions can't return arrays in C. However, inorder to return the array in C by a function, one of the below alternatives can be used.
Why can't a function return an array?
Arrays cannot be passed by value, therefore they cannot be returned.