Re:Beej’s Guide to C Programming [pdf]
by serial_dev on Friday April 23, 2021 @05:16AM
(#26912685)
It's also similar in Java's pass-by-value vs pass-by-reference (pass as well as copy), if I recall correctly.
[ Parent
| on HN ]
Actually, most languages only have pass-by-value, being “pedantic” (but it is actually a useful distinction).
I’m sure there are other’s but out of the majorly used languages, only C++ has actual references. Pointers are passed by value, that is the pointer value gets copied. References are a language level construct.
Here is a great “rant” at it in case of Java: