POINTERS in C++

23
10

Twitter ►
Instagram ►
Patreon ►

Series Playlist ►

—————————————————————————————————————-

BEST laptop for programming! ►
My FAVOURITE keyboard for programming! ►
My FAVOURITE monitors for programming! ►

MAIN Camera ►
MAIN Lens ►
Microphone ►

—————————————————————————————————————-

Slack ►
Stream ►
Website ►
Facebook ►

Source: cuocdoidanghien.com

View More: Cuocdoidanghien Education

23 COMMENTS

  1. what's the point of pointers? I don't see the point..er! Seriously; it would help if you explained why and when you should consider pointers. And before the comment trolls say "it makes it faster"… give an example

  2. Super-clear. Unlike other videos, not so slow that I lose the plot and my mind wanders waiting for the next piece of useful information. Love it. Thank you!

  3. hello I really want to thank you you helped me but I have a problem I try to follow your explanation and I can't get to the result ask I am asked Write a program capable of finding a letter given to inside a word longer than 10 characters, entered by the user. The program must indicate the successive position (s) of the character and display the character (s) found in capital letters.
    Example:
    Enter a word longer than 10 characters: extraordinary
    Letter to look for: a
    Result: extraordinary
    The letter a appears in positions 5 and 11. but I'm stuck for two days.

  4. Can't you get the size of the data the memory pointer is by dereferencing it at using sizeof? I mean, you can, isn't that knowing the size???

  5. It all started when I clicked on The Cherno's video about C++ strings. Then I had to pause to watch the vid on arrays, then pointers, then I kept having to go further back and back…and back…and back… the year is now 1857 and I'm watching Charles Babbage tweek his analytical engine, the first computer ever made.
    Let's just say The Cherno is very thorough. It's true what they say, trying to solve one problem can lead you to other solutions; I've fucking discovered time travel.

  6. I dont get why if you do:
    int var = 8
    void* ptr = &var
    *ptr = 10
    you get an error. I mean, as you said if pointers are just holding the address, why if I reference the variable and change its value I get an error? Why changing void* to int* to define the pointer fixes it?

  7. These are the worst tutorials for any beginner out there. I, personally, know the basic and advanced topics of C++ and that's why I love your tutorials, because in every one of your tutorials there is something new I learn. If I were a beginner I would call you a really bad teacher (cuz I couldn't learn ANYTHING here), but since you already told us: "You will have to google alot of things", that wouldn't be the case here. Love your tuts!! Really hoping for assembly tutorials in the future. Keep it up!

  8. Types do matter, I tried to output the value stored at the memory address the pointer was storing, and while it was void, it was impossible to do so. Once I defined the pointer as int* it worked perfectly. So types are important. And you can always do sizeof(*pointer) and you can get the size.

LEAVE A REPLY

Please enter your comment!
Please enter your name here