I\'m trying to use pass by reference in C so that the function can modify the values of the parameters passed to it. This is the function signature:
int loc
C does not support pass by reference. You'll need C++ to do it the way it is written, or modify into
C
int locate(char *name, int *s, int *i)
and pass pointers to the second and third parameter variables.