Consider:
A function protoype.Code:void function(long n1[5]);
what are the maximum number of values that I can change back in the main using the parameter I pass in??
Consider:
A function protoype.Code:void function(long n1[5]);
what are the maximum number of values that I can change back in the main using the parameter I pass in??
For a single dimension array, the number in the brackets is absolutely meaningless - you may just as well leave it empty for all that the compiler cares.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
Yes you can alter it.
Usually, you also pass the size of the array to a function:
Code:void show( int n[], int size) { while (size--) printf( "%d ", *n++); printf( "\n"); }
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.