I have something like this,
Code:int main(void) { int x[100]; // loop and scanf to get user input for array } int calculate( x[100] ) { //variable passed from main function into this function //bunch of code here to do calculation return (x[100]); }
basically all I'm trying to do it pass a variable from main function to calculation function.
I'm reading my text....and I kinda think I got the concept wrong...