Simple Quick Easy Pointers
Posted on 2004-04-27
I have some course work in for tomorrow and just cannot get my head around pointers. I only need a simple one.
As far as i am aware a pointer can be used to pass data to anf from for a function becuase its a location in memory. This is all i want ....
void test(int *ptr);
ptr = 4;
void test(int *ptr)
ptr = 7;
Please i have tried to simplify this code and i am running out of time quickly. I need something like the above example to work asap. It also has to be using pointers no return statement or anything.