Return Array in C?

前端 未结 4 684
春和景丽
春和景丽 2021-01-07 05:21

I cant return array in c,i am quite new to C so i probably do some kind of funny mistake, here is the code:

#define MAXSIZE 100
int recievedNumbers[MAXSI         


        
4条回答
  •  再見小時候
    2021-01-07 05:32

    In C, you can't return an array from any function, but you don't need to do so too. Because you can pass the array to the funtion (the array's reference will be sent) and change whatever you want in the array. The change(s) will stay in the array even if the program comes out of that function. Thank you.

提交回复
热议问题