C++ Pointers and References FULL Guide

  Рет қаралды 1,691

Velcode

Velcode

Күн бұрын

In this video, I will show you why pointers are important to the C++ language, how they work, and how to use them. Then, I will show you why references are used and how they help reduce pointer usage.
__ Social Media __
Instagram: / velazcojd
Podcast: / @unqualifiedgurus
__ Equipment __
Microphone: amzn.to/3leXZR4
Touch Input: amzn.to/30Z1Mex
Main Monitor: amzn.to/3rfwfiQ
Second Monitor: amzn.to/3Gw8NTv
Video Editing: amzn.to/3lgb8Jv
Video Camera: amzn.to/3nrwFjq
Main Lighting: amzn.to/3GLE9FX
Secondary Lighting: amzn.to/3npEsi0
Headset: amzn.to/3A0GjP7
USB Drive: amzn.to/3Gvm9PD
[00:00] Introduction
[00:57] Why we need pointers
[04:44] Problem with copies
[08:32] Memory
[16:10] Variable addresses in code
[20:12] Pointers
[38:42] References
[43:55] Pointers vs References
[49:06] Summary

Пікірлер: 26
@meenamurthy1503
@meenamurthy1503 7 ай бұрын
I wish KZbin had option of liking content multiple times similar to claps on medium, This nearly hour long video must have taken you a lot of effort Thank you so much for sharing this💙
@VelcodeCS
@VelcodeCS 7 ай бұрын
No problem! Glad you found it useful!
@p4c0m1r
@p4c0m1r Ай бұрын
THANK YOU DUDE!!!🙏
@wesleygilbert6422
@wesleygilbert6422 Жыл бұрын
This definitely filled the gap in my brain with understanding pointers and references, thanks for your thorough explanation! Will be sure to share this with people that are struggling with this as well
@VelcodeCS
@VelcodeCS Жыл бұрын
Thanks! When I was learning these concepts I remember guessing * and & until the program compiled and worked 😅. Once I learn how exactly it works behind the scenes, it became second nature. Glad this video helped and thanks for sharing!
@jin6086
@jin6086 Жыл бұрын
Your content is amazing, keep up the good work!
@VelcodeCS
@VelcodeCS Жыл бұрын
Thanks, will do!
@loveshamie1351
@loveshamie1351 Жыл бұрын
Thank you very much... I watched all of it. I understand pointers and references now. Love from Zimbabwe 🙂🙂 ❤
@VelcodeCS
@VelcodeCS Жыл бұрын
Hello to Zimbabwe!
@garipprogrammer8128
@garipprogrammer8128 2 жыл бұрын
man, you are the best.
@patriciamendezlorenzo8747
@patriciamendezlorenzo8747 2 жыл бұрын
it is great, just great video😃
@jexyl8071
@jexyl8071 2 жыл бұрын
Goddamn man idk why no one else was able to emphasize the difference between swapping values vs swapping addresses. Copies! Having the same value in multiple addresses, yes - I can see that being problematic and inefficient once you scale up. Jesus! Thank you for this video
@VelcodeCS
@VelcodeCS 2 жыл бұрын
Yeah, once that clicked in my brain. I was like, why does no one teach it like that?! Well, at least, no one I know. Glad it helped!
@ashm7380
@ashm7380 Жыл бұрын
Thank you for taking the time to make these videos. Please continue. You make a big difference in my learning , Thank you again.
@vimleshkumarkanaujiya
@vimleshkumarkanaujiya Жыл бұрын
Love you Brother from India
@VelcodeCS
@VelcodeCS Жыл бұрын
And from Mexico over here!
@vimleshkumarkanaujiya
@vimleshkumarkanaujiya Жыл бұрын
@@VelcodeCS Love Mexico 💫
@vedatduhadaglar960
@vedatduhadaglar960 2 жыл бұрын
This was really helpful my friend, keep it up
@VelcodeCS
@VelcodeCS 2 жыл бұрын
Thank you 😊
@EstebanMartinez-pm2zc
@EstebanMartinez-pm2zc 2 жыл бұрын
That thumbnail!!! 😅😂
@VelcodeCS
@VelcodeCS 2 жыл бұрын
😅
@nsociety
@nsociety 2 жыл бұрын
37:39, is that code correct? int assigned to x pointer to int?
@VelcodeCS
@VelcodeCS 2 жыл бұрын
Yes, it's correct, both x and y are integer pointers. The * dictates that it's a pointer and it also is used to read/write to the location it's pointing to. Hence, x is a pointer variable and the value 5 is assigned to where x points to.
@lopo8000
@lopo8000 2 жыл бұрын
how much are u into cryptocurrency As a programmer?
@VelcodeCS
@VelcodeCS 2 жыл бұрын
I myself have not been involved with crypto at all. I'm interested in how the block chain works, but not so much into the currencies themselves.
@abdosayed4376
@abdosayed4376 Жыл бұрын
Hi, could you please give me any of your social media accounts, also I really liked your C++ videos they are amazing bro
Understanding Polymorphism with C++ | OOP Lecture
1:43:16
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,1 МЛН
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 14 МЛН
DO YOU HAVE FRIENDS LIKE THIS?
00:17
dednahype
Рет қаралды 93 МЛН
POINTERS in C++
16:59
The Cherno
Рет қаралды 1 МЛН
What is the Difference Between a Pointer and a Reference C++
7:58
Paul Programming
Рет қаралды 424 М.
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 522 М.
HoloLens 2 Unboxing and Demonstration
21:20
Velcode
Рет қаралды 9 М.
why is it illegal to use "goto"?
5:23
Low Level Learning
Рет қаралды 245 М.
C++ Weekly - Ep 344 - decltype(auto): An Overview of How, Why and Where
9:06
C++ Weekly With Jason Turner
Рет қаралды 14 М.
Learn Programming with C++ - Short & Long Numbers
14:01
Velcode
Рет қаралды 1,8 М.