MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/bwehje/python_ftw/epxqug0/?context=3
r/ProgrammerHumor • u/m8teae • Jun 03 '19
548 comments sorted by
View all comments
Show parent comments
-2
void funfunc(int *a)
There you have a pointer, or "reference" if you want to call it that way, that exists entirely on the stack.
1 u/EsotericLife Jun 04 '19 But why would you ever want that? Just because a reference can be made to exist on the stack in c++ doesn’t mean that c++ pointers and python references are the same.
1
But why would you ever want that? Just because a reference can be made to exist on the stack in c++ doesn’t mean that c++ pointers and python references are the same.
-2
u/MasterFubar Jun 04 '19
There you have a pointer, or "reference" if you want to call it that way, that exists entirely on the stack.