C++ Pointers to Pointers - Finally Understand Double Pointers

  Рет қаралды 9,551

Caleb Curry

Caleb Curry

Күн бұрын

Пікірлер: 24
@codebreakthrough
@codebreakthrough Жыл бұрын
Be notified of new C/C++ course: calcur.tech/c-cpp-newsletter
@brajlecz9485
@brajlecz9485 Жыл бұрын
Damn, caleb got in shape! great work!
@mitchellxiang9934
@mitchellxiang9934 5 ай бұрын
You really saved my life! Thanks Caleb!
@spidermanlift4527
@spidermanlift4527 Жыл бұрын
Hey Caleb, I started coding with arm assembly, and I learned that pretty well. But due to having to switch to C++ for a different project I struggled a lot with the syntax which your videoes helped a lot. Understanding how it works at a low level but not knowing how to do it is really frustrating.
@pastasawce
@pastasawce Жыл бұрын
What's a pirates favorite programming language? C! With Args!
@rend1027
@rend1027 10 күн бұрын
Dude you overcomplicated the shit out of this!
@boryswwa
@boryswwa Жыл бұрын
08:03 Hi Caleb, could You explain, why we don't need to use a dereference operator (*data[i]) to get the strings in std::cout in this examle? if data[] is an array of pointers, and we get specific value from that array, shouldn't we get the address of the string as a return, rather than the string itself, since we are not using a dereference operator here? Or is do the brackets in the array reference dereference the pointer by definition? Great tutorials btw.!
@nobudev
@nobudev 4 ай бұрын
Can I apply this with Golang ?
@caiooliveira9108
@caiooliveira9108 5 ай бұрын
on pointer to a pointer, i still dont get why using double pointer. in the outer function , what memory address being changed if the memory address of data is actually pointing to the first memory address of inter array?? it seems for me just one later of pointers. additionally, what would have change if inner function data just have one * and the outter function passed & and just deference inside the outer function? it would present the same results as double pointers?
@jerardosandoval861
@jerardosandoval861 Жыл бұрын
Perfect. I have a final today
@GSeymore
@GSeymore 10 ай бұрын
Thank you!
@dwivedys
@dwivedys 8 ай бұрын
Pointers - while conceptually are not too complicated to understand - in practice blows the hell out of the brains!
@Baconc2
@Baconc2 5 ай бұрын
Hold on. Pointer to a pointer in the ast example data points to outter data variable which is pointed once deferenced to tmp variable?
@sriramkannan317
@sriramkannan317 5 ай бұрын
temp holds the location of newly created int 10. Now the outer data pointer is made to point to this same location by dereferencing the pointer to pointer data inside function
@Baconc2
@Baconc2 5 ай бұрын
at 10:26 could i have just *data=tmp to modified the data inside main () instead of replacing the pointer? or just pass as reference&?
@luigichopper
@luigichopper Жыл бұрын
The chapters say 'ChatGPT' Informative video btw! 👍
@codebreakthrough
@codebreakthrough Жыл бұрын
Oops, copied prev video and forgot to update timestamps. Just updated! Thanks.
@luigichopper
@luigichopper Жыл бұрын
@@codebreakthrough Np! I also watched your entire C++ series over the summer and learned a ton!
@meera.9404
@meera.9404 Жыл бұрын
Nice 👍
@meera.9404
@meera.9404 Жыл бұрын
Nice.
@harrysbidos
@harrysbidos 6 ай бұрын
Actually, reference pointer could be used instead... in the second example.
@Sydney268
@Sydney268 Жыл бұрын
Well I have no idea why it didn't work just copying the lvgl object pointers into an array - but it did when I made an array of pointers to pointers of lvgl objects?! static lv_obj_t **ta_time[4] = {&ui_SettingsTime1, &ui_SettingsTime2, &ui_SettingsTime3, &ui_SettingsTime4};
@The1RandomFool
@The1RandomFool 5 ай бұрын
Pointers to pointers; it no longer seems pointless.
@nachmeo1728
@nachmeo1728 Жыл бұрын
triple pointer
Smart Pointers in C++ (Stop Using new?)
17:18
Caleb Curry
Рет қаралды 14 М.
C++ Pointers - Finally Understand Pointers
15:56
Caleb Curry
Рет қаралды 222 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
What are double pointers in C?
14:43
CodeVault
Рет қаралды 46 М.
Learning C++? Avoid these Beginner Mistakes...
13:47
Caleb Curry
Рет қаралды 7 М.
arrays are weird
6:57
Low Level
Рет қаралды 117 М.
C++ Super Optimization: 1000X Faster
15:33
Dave's Garage
Рет қаралды 334 М.
References in C++ Explained
14:21
Caleb Curry
Рет қаралды 105 М.
Weak Pointers in C++ (std::weak_ptr)
17:25
The Cherno
Рет қаралды 63 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 344 М.
SMART POINTERS in C++ (for beginners in 20 minutes)
24:32
CodeBeauty
Рет қаралды 109 М.
why do void* pointers even exist?
8:17
Low Level
Рет қаралды 406 М.
Как Ходили родители в ШКОЛУ!
0:49
Family Box
Рет қаралды 2,3 МЛН