I have various function calls in a program:
int  oneD = storeTo1D(matrix, sizeIn);
int  Vectwo = setUpVector2(sizeIn);
int  sumarr = AddOrSub(sizeIn, oneD, Vectwo);
AddOrSub(sizeIn, oneD, Vectwo);
displayarray(oneD, Vectwo, sumarr);
The int declaration in the middle indicate the use of local function variables in other functions.
The problem I am having is one the function 'AddOrSub(sizeIn, oneD, Vectwo);' is finished, it seems to go all the way back to 'storeTo1D(matrix, sizeIn);'.
I don't understand why its doing this but Iam pretty sure its those int reference declarations that are causing this. I've tried switching them around bu no luck.
Can anyone point me in the right direction?