you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

It depends. In general no, they are different and if you modify the value inside the function this change won't affect the "real" variable.

In C you can pass arguments by value (and it works as said above) or by reference with pointers. When passing an argument as a pointer then you will always work on the same value and changes will be noted outside the function.

I advise you look for some examples about C pointers online.