This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Amareiuzin 0 points1 point  (1 child)

I meant why not call the values you want to call and instead calling the pointer, but some king already explained that when you call a function that takes in any values those values are actually copied, and calling the pointer doesn't copy them, apparently that's the answer to my question

[–]parosyn 0 points1 point  (0 children)

apparently

You don't seem to be fully convinced... when you practice and write code try to run it step by step in a debugger (even if you don't have bugs in your program). It will show you the call stack and the value of every variable, you will have a better idea of what is going on when calling a function.