X
xdevel
Hi, I need your help because I don't understand very well this:
in C arguments are passed by-value. The function parameters get a copy
of the argument values.
But if I pass a pointer what really is happening? also a copy is passed
?
in C++ there is a pass-by-reference too... and in that case the
paramter can be considered as an
alias of the argument...
but now in C when we pass a pointer can we think of it as a
pass-by-address mechanism to manipulate
variables?
Thanks
in C arguments are passed by-value. The function parameters get a copy
of the argument values.
But if I pass a pointer what really is happening? also a copy is passed
?
in C++ there is a pass-by-reference too... and in that case the
paramter can be considered as an
alias of the argument...
but now in C when we pass a pointer can we think of it as a
pass-by-address mechanism to manipulate
variables?
Thanks