>>10699Let's say you are passing a variable into a function and want said to function to change the variable.
If you just pass it by value (without pointer), the function would copy the value into a separate variable, use it in the function, and destroy it when you exist from function.
Copying variable into another variable is pretty slow and memory expensive (if you pass a 1gb structure by value, the program will use 2gb of memory when the function is executing). Also the only way to retrieve the changed value from function is to return it in the end, this means you pretty much can only change 1 variable in function, because C only lets you return 1 variable (or you would have to pack all those random variables into a different structure which is just retarded and tedious)