Is it not possible to send the adress of the first element of an array to a function? I tried every possible combination, including:
That didn't seem to do the trick. I would think that doing that would send the address of the first element in the array. Am I wrong?Code:char myArray[50]; cout<<"Please enter a string: "; cin.get(myArray,49); myFunction(myArray) //function header void myFunction(char* array)
How is it done? Using arrays of pointers??



LinkBack URL
About LinkBacks


