C/C++ pointer vs C++ reference vs Java reference

preview_player
Показать описание
Ever wonder what is the difference between C pointer, C++ pointer, C++ reference, and the Java reference? It's not as complicated as it sounds, especially when you see what it looks like in memory.

--
Dino Cajic
YouTuber, Author, and Head of IT

My Book
An Illustrative Introduction to Algorithms
Рекомендации по теме
Комментарии
Автор

Dude, this is explained very well and detailed. Although I knew most of it, I still learned one or two things. A few additions (for interested viewers): In C++ references are internally mostly implemented as pointers. Other benefits of Java references are to be able to work with the same instance from different points in the code.
A tip for the video: the Part with Java references is maybe a bit fast, compared with the C++ part.

outside
Автор

That references in Java are pointers in C/C++ helped very much!

ikemkrueger
Автор

Your video is super helpful sir. Keep it up!

ngannguyen-ylgd
visit shbcf.ru