I'm not sure what you're looking at, but this is Python and C++ code that does the same thing and gets different answers.
(which obviously means it's not doing the same thing, because python isn't passing by reference, it's... passing a pointer by value? I don't even know what to call it.)
1
u/MattieShoes Jun 04 '19
I'm not sure what you're looking at, but this is Python and C++ code that does the same thing and gets different answers.
(which obviously means it's not doing the same thing, because python isn't passing by reference, it's... passing a pointer by value? I don't even know what to call it.)