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