Have you found yourself saying “Can someone please explain pointers?”
This video is probably for you.
Subscribe to Google for Developers →
source
Have you found yourself saying “Can someone please explain pointers?”
This video is probably for you.
Subscribe to Google for Developers →
source
Subscribe to Google for Developers → https://goo.gle/developers
Pointers is the easiest
To understand pointers, you just need to understand a TINY bit of how a computer actually heckin works. Computers aren't magic boxes, they have three different types of main storage. A hard drive, memory, (and cpu registers but is that really even storage-). In c you'll usually work with the memory, and this memory contains little divisions. Each block of memory has a value assigned to it so that you can access the data stored there. If they weren't named, neither you nor the computer would know where the data is. A pointer is simply a variable that contains this assigned name, usually a hex code of some sort. So, now that you know where the data is stored you can dereference the pointer and perform operations on it such as reading or writing.
😂😂😂
it lets you eat and enjoy and remember it. Its just when you come back to it its like starting the day with only fine dining and breathing in the tank.
I swear pointers are not that complicated
😅😅😅
NullFoodException thrown
Incomprehensible Compiler : Who summoned me
Google weakness
Ctrl+u
Do people know there is smart pointers?
Why do people think that working with pointers is hard?
😂
as for me begginer, pointers is the best feature in C
Bro most easiest thing …. Pointer
I mean yea but it also makes it very clear where pointers are used but I still think not clear enough as I found out that even normal vars are also ptrs this might sound logical as thy have a adres but under the hood you also need to use ptrs to use them it is impossible to make a big program without ptrs (Im someone who learned programming almost alone so I had to learn a little asm and I didn’t know it worked like that 😵💫)
Oh you silly goose….
Pointers are just the beginning!
The number of people who think pointers are ints or hold ints is insanely worrying. An int is depending on the system, usually 32bits. While pointers are depending on the system, usually 64bits. Beyond that a pointer IS NOT A NUMBER TYPE. It carries alot of additional data at compile time. It is a unique type that is an abstraction over virtual memory. If you MUST work with pointers as raw non-pointer number types you MUST use size_t, its size is determined by the platform and it is allways the same size as a pointer.
I love ptrs but im prolly biased cuz I learned Assembly before C and C++ 😭😭😭
Pointers are actually insanely cool stuff once you get the hang of them. You can do pretty amazing stuff with double pointers and even triple pointers.
😅
Hahahaha. Today I'm Learning C++ 😂
Just use smart pointers. It’s a wrapper for raw pointers. They are defined in memory file if I’m not mistaken. They handle all the memory management and you don’t need to concern about this. std::unique_ptr and std::shared_ptr
Don't waste food please 🙏
😂
I wrote a trash 400 line c++ code and i couldnt find the missing ; lol
*Laughs in Assembly*
.😅
Not me still struggling with mutexs and threads lol
I learnt C as my first programming language way back in high school. I took a non-mandatory C++ course in the University. I wrote nearly all my software in C… It's hard to argue, really, that I still don't know C++. So, why is this on my YT home page?
I don’t even know the point of pointers anymore (no pun intended)
Pointers ain’t that complicated change my mind .
ANSI ESCAPE CODES
pointers is the easiest part i've ever learn in cpp
So u are new to c++ …. believe me pointers are tough … initially but never go into modern c++ ….
Just remember, a pointer is just a variable that is a memory address.
Just think of void pointers to start with. They are just pure memory addresses.
Then when you add a type, like integer pointers ( int* ) that's a memory address that gets treated like an interger when you dereference it.
Once you get a handle on them they aren't too hard. And I recommend anyone learning C or C++ learn pointers early on. This is a big reason why C is so low level and powerful. (It's very low level for a high level language.)
Pointers are easy?
God finily someone suffering from pointer other than me
C++ actually makes a lot of sense. Take the basic Hello world program:
std::cout << "Hello World!";
So the << operator is the shift left operator. So this command means take the binary number cout, and shift it left by "Hello World!" positions.
Freakilompre xvt 69 annual kernel federalization minorano
std::unique_ptr: Don't worry
pointers easy, STD hard, because too big
Dont be afraid of learning C++. Pointers are NOT that difficult..
Rushed and was just trying Rushed to the other side 😢😢😢😢😢😮😮😮😮😅😊😊😊❤
Is C++ hard to learn?
Pointers in c++ are literally one of the eqsiest parts, the harder parys are something like move/forward semantics, templares or some unknown depths of c++