Differences between python references and C pointer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Differences between python references and C pointer?

I read that lists in python is similar to C/C++ pointer, in that list variables will reference lists object in memory. If so, are they completely identical? What are the differences between python references and C/C++ pointer?

17th Jul 2017, 11:56 AM
Handy
Handy - avatar
1 Answer
+ 1
It is the same difference between C++ reference and C++ pointer in fact. Python reference is the same as C++ reference : you do not really manipulate pointer directly, but inside, hidden, there is the same thing
17th Jul 2017, 12:06 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar