A couple of problems with the code in the OP.
First, it appears that you are trying to return the address of an array that is locally declared within a function. Once that function returns, the array is toast, and hence not accessible any more.
The other issue is the declaration of the yesreturn() function. If you want it to return a pointer, then you need to change the return type to int*.
Since you are learning C, and it appears that you are new to the language, I would recommend that you consider declaring an array in your main function, then passing it to a function where it can be used in there.
If you wish to pursue what you are working on now, then the only option you have available would be to allocate memory from the heap for the array in yesreturn(), and then return it. Note that when returning the address of an array, it is not necessary to place an & in front of the array name.