Original Post
Consider this: void function1() { int variable = 5; function2(&variable); } void function2 (int *var) { *(var) = 10; //Function1.variable now is 5 return; } My question is: Instead of using "&variable" and "*var" as parameters, couldnt we just use "variable" and "var"? What is the point of using pointers in a function?