Returning From Array Function in C

As I am learning I didn’t find the solution yet when I was trying to make a reusable code for mydigit extracts code to make it functinal.

So here is the code I tried but it’s not working;

 

Solution can be foound from this link:
http://stackoverflow.com/questions/11656532/returning-an-array-using-c

https://www.tutorialspoint.com/cprogramming/c_return_arrays_from_function.htm

http://stackoverflow.com/questions/14297169/how-to-make-an-array-return-type-from-c-function

http://www-ee.eng.hawaii.edu/~tep/EE160/Book/chap7/section2.1.2.html