C++ Pointers to Pointers - Finally Understand Double Pointers

  Рет қаралды 8,309

Caleb Curry

Caleb Curry

Күн бұрын

Пікірлер: 22
@codebreakthrough
@codebreakthrough Жыл бұрын
Be notified of new C/C++ course: calcur.tech/c-cpp-newsletter
@mitchellxiang9934
@mitchellxiang9934 28 күн бұрын
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.
@brajlecz9485
@brajlecz9485 Жыл бұрын
Damn, caleb got in shape! great work!
@pastasawce
@pastasawce Жыл бұрын
What's a pirates favorite programming language? C! With Args!
@caiooliveira9108
@caiooliveira9108 Ай бұрын
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?
@dwivedys
@dwivedys 3 ай бұрын
Pointers - while conceptually are not too complicated to understand - in practice blows the hell out of the brains!
@jerardosandoval861
@jerardosandoval861 Жыл бұрын
Perfect. I have a final today
@GSeymore
@GSeymore 6 ай бұрын
Thank you!
@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.!
@meera.9404
@meera.9404 10 ай бұрын
Nice.
@Baconc2
@Baconc2 Ай бұрын
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 Ай бұрын
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 28 күн бұрын
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&?
@meera.9404
@meera.9404 10 ай бұрын
Nice 👍
@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!
@harrysbidos
@harrysbidos 2 ай бұрын
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 Ай бұрын
Pointers to pointers; it no longer seems pointless.
@nachmeo1728
@nachmeo1728 Жыл бұрын
triple pointer
Smart Pointers in C++ (Stop Using new?)
17:18
Caleb Curry
Рет қаралды 12 М.
Learning C++? Avoid these Beginner Mistakes...
13:47
Caleb Curry
Рет қаралды 6 М.
Cute
00:16
Oyuncak Avı
Рет қаралды 3,6 МЛН
小丑和白天使的比试。#天使 #小丑 #超人不会飞
00:51
超人不会飞
Рет қаралды 38 МЛН
Violet Beauregarde Doll🫐
00:58
PIRANKA
Рет қаралды 52 МЛН
Will A Guitar Boat Hold My Weight?
00:20
MrBeast
Рет қаралды 134 МЛН
Dynamic Memory with Malloc - Everything you Need to Know
13:51
Caleb Curry
Рет қаралды 9 М.
C++ Pointers - Finally Understand Pointers
15:56
Caleb Curry
Рет қаралды 212 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 304 М.
why do void* pointers even exist?
8:17
Low Level Learning
Рет қаралды 360 М.
Working with C++ Pointers
9:43
Caleb Curry
Рет қаралды 43 М.
you will never ask about pointers again after watching this video
8:03
Low Level Learning
Рет қаралды 2,2 МЛН
C++ Examples - Pass by Value vs Reference vs Pointer
11:53
Caleb Curry
Рет қаралды 22 М.
String In Char Array VS. Pointer To String Literal | C Programming Tutorial
9:58
POINTERS in C++
16:59
The Cherno
Рет қаралды 1 МЛН
Cute
00:16
Oyuncak Avı
Рет қаралды 3,6 МЛН