Log in

View Full Version : Is this statement true or false ?


Mathematica
Feb 9, 2009, 09:42 PM
The following function declaration guarantees the values in the array argument are not changed.

void function1(int array[ ], int numElements);

Ribbonic Plague
May 21, 2009, 01:13 AM
Err why don't you have a think about it

Hint: if I try this:

array[0] = 4;

would that change the 1st value of your array?

shihouzhuge
Oct 6, 2009, 09:51 PM
The following function declaration guarantees the values in the array argument are not changed.

void function1(int array[ ], int numElements);

You should write the function1 by this:

Int array[20];
Void function1(array,int numElements)

If there's array[],you couldn't use '[]' inside the function()

I don't know if you get the point...
Good luck!