A real newbie question, hope it make sense
I've tried the following code but it does'nt work.
I'm thinking if arrays cannot be passed by functions, I use need to use pointers, but really not sure
[EDIT by Kevin Kofler: Fixed formatting: added code tag, disabled emoticons, removed HTML pollution from some M$ WYSIWYG editor.]
I've tried the following code but it does'nt work.
void fuction1(void) {
double array[4];
array = fuction2 (void);
}
double fuction2 (void) {
double array 4];
array [0] = 50;
array [1] = 50;
array [2] = 80;
array [3] = 50;
return array[4];
}
I'm thinking if arrays cannot be passed by functions, I use need to use pointers, but really not sure
[EDIT by Kevin Kofler: Fixed formatting: added code tag, disabled emoticons, removed HTML pollution from some M$ WYSIWYG editor.]

