Apologises if this is covered somewhere else but i did a search and couldnt find what i need
im trying to pass an int pointer from one function to another and cos i dont understand the question, the ode below explains a little better
im either more tired than i feel or its a little more difficult than this
thanks for any help
I can't be bothered to have a sig!
im trying to pass an int pointer from one function to another and cos i dont understand the question, the ode below explains a little better
Code:
int main(void)
{
int location[maxNum];
getValues(location);
}
void getValues(int *l)
{
*l = getInput(???); // what is it i need to pass here?
}
void getInput(int *p)
{
}
im either more tired than i feel or its a little more difficult than this
thanks for any help
I can't be bothered to have a sig!