int a[5][5];
int* a[5];
int** a;
When you get an array as a factor, you have to choose one of those three and unify it Is there any way I can turn it over without using a pointer?
c array coding-style struct
I can't just move on to the arrangement itself You can do it if you use a structure with only an array of members.
typedef struct {
unsigned long array[MAX];
}ABC;
ABC foo(ABC myinput){
myinput.array[0] = 1;
//...
return myinput;
}
This allows the structure to be returned to value rather than address, and the function returns to value
© 2024 OneMinuteCode. All rights reserved.