Pointers in C / C++ [Full Course]

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ค. 2024
  • Pointers in C and C++ are often challenging to understand. In this course, they will be demystified, allowing you to use pointers more effectively in your code. The concepts you learn in this course apply to both C and C++.
    ✏️ Course developed by Harsha and Animesh from MyCodeSchool.
    🔗 Read all about their amazing story here: www.freecodecamp.org/news/myc...
    🔗 Check out the MyCodeSchool channel: / mycodeschool
    🔗 Check out the MyCodeSchool website: mycodeschool.com/
    ⭐️ Course Contents ⭐️
    ⌨️ (0:00:00) Introduction to pointers in C/C++
    ⌨️ (0:10:29) Working with pointers
    ⌨️ (0:22:05) Pointer types, pointer arithmetic, void pointers
    ⌨️ (0:33:01) Pointers to Pointers in C/C++
    ⌨️ (0:42:21) Pointers as function arguments - call by reference
    ⌨️ (0:56:36) Pointers and arrays
    ⌨️ (1:05:18) Arrays as function arguments
    ⌨️ (1:18:10) Character arrays and pointers - part 1
    ⌨️ (1:32:49) Character arrays and pointers - part 2
    ⌨️ (1:42:49) Pointers and 2-D arrays
    ⌨️ (1:55:07) Pointers and multidimensional arrays
    ⌨️ (2:11:50) Pointers and dynamic memory - stack vs heap
    ⌨️ (2:29:14) Dynamic memory allocation in C - malloc calloc realloc free
    ⌨️ (2:36:48) Pointers as function returns in C/C++
    ⌨️ (3:02:01) Function Pointers in C / C++
    ⌨️ (3:13:57) Function pointers and callbacks
    ⌨️ (3:29:16) Memory leak in C/C++
    ⭐️ Special thanks to our Champion supporters! ⭐️
    🏆 Loc Do
    🏆 Joseph C
    🏆 DeezMaster
    --
    Learn to code for free and get a developer job: www.freecodecamp.org
    Read hundreds of articles on programming: freecodecamp.org/news

ความคิดเห็น • 1.7K

  • @BinYaseen4Life
    @BinYaseen4Life 3 ปีที่แล้ว +3847

    I feel smarter by just clicking on the video.

    • @manas1309
      @manas1309 3 ปีที่แล้ว +143

      You'll feel like Einstein after completing the video!

    • @saideepgaunker3712
      @saideepgaunker3712 3 ปีที่แล้ว +23

      Hi
      Please create video on C programming for beginner 😀😀😀

    • @mryup6100
      @mryup6100 3 ปีที่แล้ว +17

      You'll feel like God after watching all of their videos!

    • @saideepgaunker3712
      @saideepgaunker3712 3 ปีที่แล้ว +3

      @@everydayintroswithouttext5012 Ok🥰😊🤘👍

    • @riobafelix3496
      @riobafelix3496 3 ปีที่แล้ว +4

      You are not alone... these are not ordinary topics. I feel humbled

  • @Tony-dp1rl
    @Tony-dp1rl 2 ปีที่แล้ว +759

    I spent decades writing C/C++ code daily, and the best bit of advice anyone ever gave me stuck with me that entire time relating to pointers.
    Not sure if it is in this video, as I didn't watch it all ...
    When you are reading the declaration of a C/C++ variable, read it right to left in English and the meaning is obvious
    e.g. What is a variable defined as ... int * const *
    Backward .. it is a Pointer to a constant pointer to an integer
    e.g. What is a variable defined as int [] **
    Backward .. it is a Pointer to a Pointer to an Array of Integers
    Easy :)

    • @parthpawar7837
      @parthpawar7837 ปีที่แล้ว +12

      This is amazing, thank you!

    • @Nomadnetic3
      @Nomadnetic3 ปีที่แล้ว +8

      Great tip, thank you.

    • @sampapap1188
      @sampapap1188 ปีที่แล้ว +4

      Love you ❤

    • @gondoravalon7540
      @gondoravalon7540 ปีที่แล้ว +16

      It is amazing how just a simple change at how you approach a problem makes things click.

    • @linonator
      @linonator ปีที่แล้ว +14

      This is actually really useful. I finally wrapped my head around pointers and this helps solidify my learnings. Thanks Tony! I’ll remember this comment of yours when I’m a super C++ dev 😅🥲

  • @turmat01
    @turmat01 2 ปีที่แล้ว +728

    Note about doing stuff like:
    int* p;
    It kinda make sense to put the star next to the data type... because it's an "Int pointer" named p. This is fine as long as you declare only one variable per line. Some people like to declare multiple variables at once (I don't recommend doing this but it's doable...). If you do so, only the first variable will be a pointer:
    int* p1, p2;
    p1 will be a pointer to an integer... But p2 is an integer. This is why you should put the asterisk on the variable name instead:
    int *p1, *p2;

    • @inug4mida
      @inug4mida 2 ปีที่แล้ว +21

      nice fact

    • @ojasmaheshwari3862
      @ojasmaheshwari3862 2 ปีที่แล้ว +6

      Thanks helpful little fact

    • @nati1514
      @nati1514 2 ปีที่แล้ว +3

      hmm good stuf 😉😉😉

    • @riskr6384
      @riskr6384 ปีที่แล้ว +1

      at 28:00 after defining p0 , i am unable to print p0....and also upon dereferencing it is giving weird outputs....someone please tell...

    • @pavloceza956
      @pavloceza956 ปีที่แล้ว +2

      you saved me a LOT of time

  • @rohann8073
    @rohann8073 3 ปีที่แล้ว +54

    RIP LEGEND LORD HARSHA. Your contribution to my life is way beyond words.

  • @mohiths2065
    @mohiths2065 3 ปีที่แล้ว +1377

    Everytime he says thanks for watching, I so desperately want to thank him for teaching. You're a legend, Harsha and you'll never be forgotten 🙏

    • @arshsaiyad7547
      @arshsaiyad7547 3 ปีที่แล้ว +12

      couldn't agree more

    • @codex8797
      @codex8797 2 ปีที่แล้ว +57

      the guy single handedly taught me more about pointers than my teachers at college.

    • @Chavez3d
      @Chavez3d 2 ปีที่แล้ว +22

      Wait… did bruh die? 😟

    • @manoj6247
      @manoj6247 2 ปีที่แล้ว +41

      @@Chavez3d yup was killed in road accident.

    • @josh1234567892
      @josh1234567892 2 ปีที่แล้ว +25

      @@manoj6247 :( that makes me sad

  • @geekyprogrammer4831
    @geekyprogrammer4831 3 ปีที่แล้ว +2166

    This was created almost 8 years ago! Still not outdated. Best explanation on pointers ever

    • @mehdimasmar6361
      @mehdimasmar6361 3 ปีที่แล้ว +16

      So far

    • @junaidkhankhan4260
      @junaidkhankhan4260 3 ปีที่แล้ว +8

      How?

    • @numairdubas2688
      @numairdubas2688 3 ปีที่แล้ว +191

      C tutorials never become outdated

    • @rban123
      @rban123 3 ปีที่แล้ว +77

      K&R was published in 1978 and it is still not outdated

    • @sachin__ak
      @sachin__ak 3 ปีที่แล้ว +43

      The guy who created this is a legend, read about him, I learnt pointers and data structures from this guy almost 6 years ago

  • @ronitkumar19
    @ronitkumar19 ปีที่แล้ว +38

    finally I completed it... Pointers topic explained beautifully ...Thanks a lot .
    Its Definitely the best explanation available on youtube period.

    • @inmafruta8730
      @inmafruta8730 ปีที่แล้ว

      I agree, and ive seen a lot

  • @trevor4530
    @trevor4530 ปีที่แล้ว +138

    It's amazing that this is free. These concepts are explained so well and clearly. Thank you!

    • @hossamayman3587
      @hossamayman3587 ปีที่แล้ว +1

      Yes, they are wonderful people, and the curriculum on their website has been really helpful to me ❤❤

  • @immanuelsuleiman7550
    @immanuelsuleiman7550 3 ปีที่แล้ว +1161

    Three and a half hour video on just pointers
    We are going to take over the world after watching this

    • @GoodLife-ru8di
      @GoodLife-ru8di 3 ปีที่แล้ว +3

      hahaha

    • @kaustubhjoshi7194
      @kaustubhjoshi7194 3 ปีที่แล้ว +2

      Ur epic😂😅

    • @giaccomusic
      @giaccomusic 3 ปีที่แล้ว +24

      this or generate so many runtime exceptions that the world we'll never be the same ever again. ahaha

    • @itsyourenotyour9101
      @itsyourenotyour9101 3 ปีที่แล้ว +3

      *Points to you* delete...er.... delete [] . Not 'We'... I'm going to take over the world.

    • @brunomacedodasilva1160
      @brunomacedodasilva1160 3 ปีที่แล้ว +6

      i can feel the power growing in my hands :D

  • @indiansoftwareengineer4899
    @indiansoftwareengineer4899 3 ปีที่แล้ว +37

    I miss this guy, whom I will miss him throughout my life, who helped me passing 3rd semester in University, in Subject Data Structures and Algorithms.....
    Love you My Code School...
    Love you Free Code Camp Org...

  • @ign7kaku
    @ign7kaku ปีที่แล้ว +13

    I completed this course in a week and enjoyed learning it all. Harsha is the best guru of C and C++ programming and I learned a lot from him. Harsha why so OP. I know that he is no more and he died on June 15 2014 at just age 32 but I know that he made underdogs the winner finally and inspired others to make many more Brilliant Programmers from whole the world and not just INDIA.

    • @alvintayedzerwa8954
      @alvintayedzerwa8954 ปีที่แล้ว +1

      It took me a bit longer than a week to complete.

    • @ign7kaku
      @ign7kaku ปีที่แล้ว

      @@alvintayedzerwa8954 the longer it is the best it is, fun fact is I am implementing these on my program codes as of my daily schedule and still revising it in different intervals to be updated and strong in the basics.

  • @chadreshpatel2339
    @chadreshpatel2339 2 ปีที่แล้ว +6

    I have been working as a software engineer in very big semiconductor company and implement functional safe programs. Still i came here to learn something more about pointers and i wasn't disappointed.

  • @neelkamal9515
    @neelkamal9515 3 ปีที่แล้ว +24

    Legends never dies.......
    Such frienship is immortal....
    That is what the real meaning of love is.......
    🙏🙏🙏🙏🙏🙏

  • @hamzakarabag6786
    @hamzakarabag6786 3 ปีที่แล้ว +348

    If you're as confused as me after checking the size of A in the sumOfElements function (around 1:15:27) and finding that it yields 8 instead of 4, note that in x64 architectures pointers are assigned 8 bytes. Since A is technically a pointer in that context and that's why you'll get 8 bytes of size

    • @noiceboiii2052
      @noiceboiii2052 2 ปีที่แล้ว +2

      thanks

    • @JM-ql4ok
      @JM-ql4ok 2 ปีที่แล้ว +1

      Thank you!

    • @jorgematute1396
      @jorgematute1396 2 ปีที่แล้ว +2

      Thanks!

    • @mytech6779
      @mytech6779 2 ปีที่แล้ว +21

      The size of other types will also change dependent on the settings of the compiler. Even comparing with the same CPU, some of these are simply choice and this is why we have the "size of A" function to check that they are acting as expected. For example a "long long int" default could be 32 or 64 or 128 bits depending on language compiler and target CPU, and you can manually change this compiler configuration. This is because you may be compiling the same source code several times for different CPUs. ie for some cases int is 16b, short is 8b, and both long and long long types are 32; for clang and gcc default for AMD64 is int=32 and long-long=128b, but you could add a compile time flag to change the int to 64b or everything to 32b.
      Float names are more standard so a double is 64bit everywhere I have looked. But the "long double" can often create a mistake, some interpret long-double as IEEE-754 float128, some simply ignore the long and use 64bit double; and others interpret long-double as an 80bit "extended precision" float; 80bit matches the x87 floating point hardware unit that is combined with some CPUs.
      And a few terrible implementations (*cough*python numpy*cough*) have been known to actually use 80bit when you use explicit "float128" or "float96" keywords in your source. These 80bit floats may actually be padded with zeros to use 12 or 16 bytes of memory (96 or 128bits) to keep the typical 4 or 8 byte alignment of memory addresses and cache lines, but the x87 math unit only uses 10 bytes.

    • @sureshnair8276
      @sureshnair8276 2 ปีที่แล้ว +1

      subscribe and watch: th-cam.com/channels/E6t_LLEfDXfOO6XDgD3u2A.html

  • @peternzioki4555
    @peternzioki4555 ปีที่แล้ว +3

    Thank you, legend. I discovered this video years after your friend and co-teacher passed, but his and your legacy lives on. Thank you for everything. Much love from Nairobi, Kenya. May he smile with the angels.

  • @MH-oc4de
    @MH-oc4de 3 ปีที่แล้ว +247

    This was very helpful, thanks!
    Here are some minor corrections:
    - At 0:41:00 : in the discussion of pointer-to-pointer, variable r should hold the address of q (=205), not the value of q (=215).
    - At 1:28:00 : print(c2[1]) is only possible via printf(c2 + 1) and this outputs 'e', not 'l'.

    • @moisesstevend
      @moisesstevend 3 ปีที่แล้ว +2

      yes yes yes yes

    • @tranthanhtruong4205
      @tranthanhtruong4205 2 ปีที่แล้ว

      I agree with you

    • @north4220
      @north4220 2 ปีที่แล้ว

      omg yes !

    • @sajalpatil6592
      @sajalpatil6592 2 ปีที่แล้ว +23

      came looking for this comment to confirm if I was right

    • @Apollyon.King.of.the.Locusts
      @Apollyon.King.of.the.Locusts 2 ปีที่แล้ว +1

      Omg, yes! That's why I had to watch that segment about pointer to pointers twice before finally getting it.

  • @dwarow2508
    @dwarow2508 3 ปีที่แล้ว +27

    This vidio alone carries my entire programming semester

  • @samuelamare3080
    @samuelamare3080 3 ปีที่แล้ว +217

    This man was a legend amongst competitive programmers! #RIP Humblefool!

    • @waitwhat3547
      @waitwhat3547 3 ปีที่แล้ว +2

      RIP? The guy sounds so young, what happened? how did he die?

    • @Ash-em5pm
      @Ash-em5pm 3 ปีที่แล้ว +78

      @@waitwhat3547 the video that you see here is roughly 7 years old. Mycodeschool was a team of devs from Microsoft and most of these were made by Harsh Srinanyana aka Humblefool. He was the highest rated programmer on topcoder India. He passed away in a tragic road accident in 2014.

    • @TT-ud5gf
      @TT-ud5gf 3 ปีที่แล้ว +4

      @@Ash-em5pm oh no - is he the one that taught us with this hand written illustration?

    • @Ash-em5pm
      @Ash-em5pm 3 ปีที่แล้ว +34

      @@TT-ud5gf not this one. This video and other public videos on TH-cam made by mycodeschool are by Animesh, one of their cofounders. After the tragic death of harsha, he was shock trodden and lost courage to upload more videos. The last video he uploaded was in 2016.

    • @capitaopacoca8454
      @capitaopacoca8454 3 ปีที่แล้ว +13

      You guys made me very sad

  • @DigvijaySingh-ct7lu
    @DigvijaySingh-ct7lu 3 ปีที่แล้ว +25

    I'm at 1:05:27 and I have already started fantasizing about impressing class girls lol😁😁
    Thanku so much

  • @adomasvensas461
    @adomasvensas461 2 ปีที่แล้ว +67

    I must express the greatest possible gratitude for this course. The material is comprehensive, well-thought out and superbly structured. All of my implicit questions (i.e. "I know that I don't understand something, just not know what") are vanishing rapidly, and I haven't even finished the course yet! Thank you, thank you! To listen to this course was probably one of the best decisions I've made as a first year in university.

  • @NimishP
    @NimishP 3 ปีที่แล้ว +40

    Very clearly explained. I did C programming in 1990 as a part of my university project (I am Mechanical Engineer). I thought that everything is forgotten, but when I watched this video, everything resurfaced as if I had studied all this just yesterday.

  • @TheVideoChatter
    @TheVideoChatter 3 ปีที่แล้ว +59

    Thank you!!! I've been trying to wrap my head around the concept of pointers for the longest time, and this video definitely makes it stick a lot better. When I was taking my programming courses, my instructor kind of just brushed over this topic, but this requires a deeper, more in-depth
    approach.

  • @swyamdipta
    @swyamdipta 2 ปีที่แล้ว +5

    I am studying computer science in school now. And we have C language in our syllabus now - definitely TH-cam has taught me way more than my school teachers. And now I am proceeding to learn the intermediate of C language by learning the concept of pointer. I have already seen the first chapter of this video and have found it quite useful. Thanks to the person who have explained every thing on that chapter in an easy way.😀

  • @sivaganesh4489
    @sivaganesh4489 3 ปีที่แล้ว +8

    watched 5 years back. still worth to watch. missing content from mycodeschool.

  • @yadav-aman
    @yadav-aman 3 ปีที่แล้ว +36

    This channel helped me a lot in clearing my fundamentals, I'm so happy to see that the code school is getting the recognition it deserves .. RIP legend

  • @floydvanpool3071
    @floydvanpool3071 3 ปีที่แล้ว +180

    This guy is one of the best instructors I have heard on the web. Speaks very good English and explains things in a very logical, easy to follow manner. Superior instructor. Great job!

    • @whyiibhav
      @whyiibhav 2 ปีที่แล้ว

      @Tongue- tied7 checkout his channel th-cam.com/users/mycodeschool

    • @imanqoly
      @imanqoly 2 ปีที่แล้ว +5

      His English is perfect

    • @zaks7
      @zaks7 ปีที่แล้ว +10

      He was one of indias greatest coders and a genius, he was fluent in multiple languages and was the red and highest rated coder from india
      dude was truly a prodigy, #RIP

    • @deltag0ny224
      @deltag0ny224 ปีที่แล้ว

      @@zaks7 What happened to him?

    • @zaks7
      @zaks7 ปีที่แล้ว

      @@deltag0ny224 He died in a car accident, search about humblefool.
      But i was wrong, this video is by his partner/best friend who is still ok.

  • @ammarrashid3535
    @ammarrashid3535 3 ปีที่แล้ว +4

    Thank you so much! I have completed the first hour and learned a lot! Thank you sir!!!!! God bless you all and your team for providing free content with outclass quality! Please keep up the good work. I am learning programming for a business project, and haven't found any better video lecture so far. I even tried some payed courses but this is simply on the next level. Thank you again!

  • @Ermelious
    @Ermelious 3 ปีที่แล้ว +9

    I came here to learn about pointers, but got to learn more than that which included how C++ organizes stuff in the memory. This is a very good crash course as it explores different use cases of pointers and has sufficient depth in each topic.

  • @johnnycincocero
    @johnnycincocero 3 ปีที่แล้ว +17

    So far, an hour into this excellent tutorial and no ads.

  • @tejasvix
    @tejasvix 3 ปีที่แล้ว +28

    I have already watched this series on mycode school many times earlier, and I can approve, best on the entire internet.

  • @joeyoest1105
    @joeyoest1105 ปีที่แล้ว +2

    This video is amazing - a hidden gem of TH-cam. I learned more about pointers in 30 mins than in hours and hours of reading in textbooks and SO.

  • @__kpsingh__
    @__kpsingh__ 2 ปีที่แล้ว +2

    These legends recorded this video back in 2012. When learning to code on YT was barely a thing. Way ahead of their time.

  • @shubhampatel7277
    @shubhampatel7277 2 ปีที่แล้ว +5

    I still remember in 2013-14 these were the set of videos I watched to learn data structure and algorithms. And these were so intuitive.

  • @kshitizshrestha9398
    @kshitizshrestha9398 3 ปีที่แล้ว +14

    Thanks a lot for uploading this video.
    Read the article about the tragic story of Mycodeschool and I felt really sad reading the story behind it.
    But, at last, they have inspired me to work hard and be passionate about coding.
    I Hope Animesh is doing good in his life and RIP brother Harsha(Humblefool).

  • @soumi6720
    @soumi6720 ปีที่แล้ว +2

    loving the explanation so far . i really wish they had this beginner to advanced videos of the entire c language . it would have been soooooooooooooo helpful.

  • @xavierhuamancruces9091
    @xavierhuamancruces9091 6 หลายเดือนก่อน +1

    llo, I am from Peru, I am 25 years old and I have been learning programming for several months.
    And I wanted to understand pointers in C++, and this is the best VIDEO explained in detail that I found,
    Thank you so much!!! Now I even know how memory is managed in C++. Thank you!

  • @jatinthakur4252
    @jatinthakur4252 3 ปีที่แล้ว +43

    Harsha was a legend. Started my coding from his channel.

    • @johnnycincocero
      @johnnycincocero 3 ปีที่แล้ว +2

      What do you mean, was?

    • @jatinthakur4252
      @jatinthakur4252 3 ปีที่แล้ว +6

      @@johnnycincocero He died in a car accident 😭

    • @odorlessflavorless
      @odorlessflavorless 3 ปีที่แล้ว +1

      @@johnnycincocero Please read the story put up in description link. Its an amazing one.

    • @TheTariqibnziyad
      @TheTariqibnziyad 3 ปีที่แล้ว

      @@jatinthakur4252 omg

    • @johnnycincocero
      @johnnycincocero 3 ปีที่แล้ว

      @@jatinthakur4252 Damn. Sorry to hear that.

  • @pnuema1.618
    @pnuema1.618 2 ปีที่แล้ว +3

    This is the best series on pointer I have found. Its verbatim to my class workbook in regards to the depth of concepts but way easier to understand then looking at written code in a book with terrible explanation. Thank you!

  • @emanmohsen3493
    @emanmohsen3493 7 หลายเดือนก่อน +2

    can't forgot how my journey start with learning programming, i was try to learn the pointers in the time of traveling and i am just remember this moment and want to share it

  • @Greebstreebling
    @Greebstreebling 2 ปีที่แล้ว +1

    Thanks very much for providing this easy to understand and comprehensive account of pointers, datatypes and memory allocation. The importance of the type of a pointer has been missed in other accounts I've read. So when you increment a char pointer it increments by 1, when you increment an int pointer it increments by 4. All makes sense once you've watched this....

  • @ahmadhadwan
    @ahmadhadwan 3 ปีที่แล้ว +18

    I really needed to learn more about pointers, thanks free code camp❤️

  • @adityaojha2701
    @adityaojha2701 2 ปีที่แล้ว +3

    MyCodeSchool made their last upload 4 years back. But today also their content are outstanding.

  • @Marinescu87Dan
    @Marinescu87Dan 2 ปีที่แล้ว +18

    An absolute knowledge treasure in understanding pointers in C!

  • @Electron_crash
    @Electron_crash 3 ปีที่แล้ว +11

    finally finished lecture ...My college takes atleast $50 for this course and only taught starting 30min of this lecture

  • @ShubhamSharma-tn3wm
    @ShubhamSharma-tn3wm 3 ปีที่แล้ว +271

    RIP. The legend he was. Humblefool.

    • @TheTariqibnziyad
      @TheTariqibnziyad 3 ปีที่แล้ว +7

      Is he dead ?

    • @TT-ud5gf
      @TT-ud5gf 3 ปีที่แล้ว +3

      @@TheTariqibnziyad who died?

    • @TheTariqibnziyad
      @TheTariqibnziyad 3 ปีที่แล้ว +12

      @@TT-ud5gf Harsha, the guy who was presenting the video 😢

    • @ShubhamSharma-tn3wm
      @ShubhamSharma-tn3wm 3 ปีที่แล้ว +16

      @@TheTariqibnziyad unfortunately it's been very long now. He was one of my initial gurus.

    • @sanjaydubey9973
      @sanjaydubey9973 3 ปีที่แล้ว +6

      @@ShubhamSharma-tn3wm where is his page? How did we lose him?

  • @AuroraClair
    @AuroraClair 2 ปีที่แล้ว +5

    This is brilliant! All case scenarios, in depth explanation... Brilliant! Thank you

  • @purplemonkeydishwasher5269
    @purplemonkeydishwasher5269 ปีที่แล้ว +2

    I love that you have dedicated so muxh time to this. Pointers has been the point where I have dropped programming so many times.
    I can survive without it, but a proper walk through is great.

  • @aravindkramesh
    @aravindkramesh 3 ปีที่แล้ว +11

    *Pointers were one of the topics I used to hate in school. I watched like 5 minutes of this video and I am liking the topic already. I have saved this video to my playlist and will watch this completely after my work today.*

    • @geutk4162
      @geutk4162 3 ปีที่แล้ว

      did you watch? do you know pointers now?

    • @quadroninja2708
      @quadroninja2708 2 ปีที่แล้ว +1

      Have you learned pointers at school? We were only taught some basic concepts such as variables and cycles, and also some algorithms

    • @aravindkramesh
      @aravindkramesh 2 ปีที่แล้ว +2

      @@geutk4162 Nope. I just relized I forgot to watch this video after work that day!

    • @geutk4162
      @geutk4162 2 ปีที่แล้ว

      @@aravindkramesh haha
      Well, it's never too late

  • @anic1716
    @anic1716 3 ปีที่แล้ว +4

    I was just working on a project having trouble understanding pointers, I needed this. Thanks.

  • @ayushsingh3877
    @ayushsingh3877 3 ปีที่แล้ว +8

    If mycdschl continued their course it would be the most subscribed channel in cs courses.

  • @itsalifarooq
    @itsalifarooq 2 ปีที่แล้ว +2

    this is probably the best video ever made on pointers.

  • @brians7875
    @brians7875 ปีที่แล้ว +1

    I have been trying to wrap my mind around pointers for a while now. This video is priceless! Thank you! Thank you!

  • @erikisberg3886
    @erikisberg3886 2 ปีที่แล้ว +28

    What a gifted teacher!
    I know this stuff, but it was nevertheless a pleasure watching the entire video.

  • @luizarnoldchavezburgos3638
    @luizarnoldchavezburgos3638 3 ปีที่แล้ว +4

    best video ever. Keep doing this kind of videos, where you get inside of difficult topics and make it easier to us. Thanks FreeCode.

  • @nishanthchandrashekar1413
    @nishanthchandrashekar1413 2 ปีที่แล้ว +1

    First of all really these are greatest videos to many students, where several things were not understood, watching these videos make someone getting enlightened, i still remember I came to know about mycodeschool, and had recommended to several people but they didn't watch, but i kept watching, later I see there were no more videos, I was completely surprised what happened why this got stopped all of a sudden today only i came to know about the story. Really this is sad to know, but the work will remain as standalone masterpiece, with little time they made this impact if it had continued it would made an astonishing impact to several peoples around world. Thanks Harsha I wanted to thank several times but came to know about your story today. Thank you very much.

  • @deepaksai3637
    @deepaksai3637 2 ปีที่แล้ว +2

    I never knew this man before....but after watching this and datastructures video I just want to see the person who taught me and saved me.......I came to know that he died in an accident.
    You are a talented person and your soul should rest in peace ......so tragic for a person who selflessly shared his knowledge...😔😔

    • @shashank1146
      @shashank1146 2 ปีที่แล้ว +1

      How was the data structures video?

  • @gamer21thCenturion
    @gamer21thCenturion 2 ปีที่แล้ว +14

    This was very helpful. It helps fill out some gaps while learning structures, and other concepts. Thank you very much to the team who made this. 👍💪😎🔭📡

  • @shivansh8006
    @shivansh8006 3 ปีที่แล้ว +3

    I have subscribed mycodeschool since 2015 and still use it to revise those concepts...thank you mycodeschool ❤️

  • @antoniusdaivap7759
    @antoniusdaivap7759 2 ปีที่แล้ว +2

    i've been struggling finding the best explanation for pointers but this video really is the best. props to Harsha

  • @Shannonsm1th
    @Shannonsm1th ปีที่แล้ว

    I’m only 20 minutes into this video but I already understand a lot of things that made no sense to me before. Thank you so much for this video. The way you explain things is so easy for me to understand.

  • @vikaskondal6359
    @vikaskondal6359 2 ปีที่แล้ว +15

    In pointer to pointer concept : Value stored in "r" is 215 which I guess should be 205 if not mistaken 🙂BTW very well explained ! Use of pen and diagrams really helps to understand things better. And course content is very well covered. Lucky to have this in my library .🙏

    • @henrymiller5709
      @henrymiller5709 ปีที่แล้ว

      yes, value stored in r should be 205 but not 215

  • @monemahmed6830
    @monemahmed6830 ปีที่แล้ว +7

    So I have a job interview an hour later. Came here to refresh my concepts on pointers and memory management. My only regret is why didn’t I finish it earlier. Awesome content. Much love to mycodeschool.

    • @piesekleszekpiesek
      @piesekleszekpiesek ปีที่แล้ว +1

      Did you get it :D?

    • @monemahmed6830
      @monemahmed6830 ปีที่แล้ว +1

      @@piesekleszekpiesek Thank You for following up 😄 I have completed three technical viva. Waiting for the call to final management viva. Let's see what happens. 😄🤞

    • @ErmanUtkuavsar
      @ErmanUtkuavsar ปีที่แล้ว

      @@monemahmed6830 what happened at the end :)?

  • @believerofwords
    @believerofwords 3 ปีที่แล้ว +1

    the best explanation of pointers on the whole youtube. Brilliant content.

  • @chethananderson3446
    @chethananderson3446 2 ปีที่แล้ว

    The best video on pointers on youtube. Please whoever visits this video do watch it. He has convered everything that we need to know. 100% worth watching whole video without skipping.

  • @bhargavikkurthi5830
    @bhargavikkurthi5830 3 ปีที่แล้ว +7

    i would definitely donate this channel when i start earning.

  • @jaanu2222
    @jaanu2222 2 ปีที่แล้ว +3

    you know it's gonna be a good video as soon as you hear the indian accent , god bless everyone that teaches us something important

  • @alexmncdoor7130
    @alexmncdoor7130 2 ปีที่แล้ว +1

    The time I studied this in the early 2000´s, I had no rescue from youtubers. I think this is a valuable content

  • @heavymetalmixer91
    @heavymetalmixer91 11 หลายเดือนก่อน

    "Pointers as function returns in C/C++" doesn't start at 2:36:48 as stated in the video description but at 2:47:58.
    Btw, this course is amazing. For the basics of pointers I think this is still the best video even to this day (July 5th 2023).

  • @ED99LAM
    @ED99LAM ปีที่แล้ว +10

    very informative , detailed explanations which are very useful to understanding this difficult concepts

  • @motivationmastery2327
    @motivationmastery2327 3 ปีที่แล้ว +3

    No one could ever teach me pointers like you! You are the best!!!

  • @ShashwatShekhar-zy4pf
    @ShashwatShekhar-zy4pf ปีที่แล้ว +1

    seriously this is some god level teaching

  • @johanneskunz1737
    @johanneskunz1737 8 หลายเดือนก่อน +2

    Nowdays:
    18:23 printf("%d
    ", p); will not work for pointers, because %d is for signed integer. It has to be %p for pointer address.
    Also at 19:33 printf("size of integer is %d bytes
    ", sizeof(int)); %d has so be %zu or %lu, because sizeof() returns type size_t.

  • @johnstorm589
    @johnstorm589 3 ปีที่แล้ว +7

    well done! your usage of a tablet/pen helps a lot to visualize concepts like stack, and heap.

  • @saifulislamniloy1107
    @saifulislamniloy1107 2 ปีที่แล้ว +3

    Most Tricky
    Character Array and Pointers Part 2 1:41:00
    some pointer syntax 1:59:35
    pointer expression 2:05:17
    Confusions
    * 2d Array Pointers (not working in cpp) 1:42:50 (sol of this: 1:59:00)

  • @laurentbajrami3688
    @laurentbajrami3688 2 ปีที่แล้ว +1

    The pace could not be done any better. This is simply the best video on the subject

  • @nataniosif5626
    @nataniosif5626 2 ปีที่แล้ว +2

    This was one of the best explanations of a topic that I watched. You really are a great teacher. Good Job!

  • @shardams
    @shardams 3 ปีที่แล้ว +6

    Harsha is the boss. He explains it very well.
    I have watched his lectures 2 years ago and they are in my mind yet.

    • @shivansh8006
      @shivansh8006 3 ปีที่แล้ว +5

      Actually Animesh was the presenter in the video while Harsha was far good in his coding concepts and thus they both were a very good team.

  • @user-vy5se9ko4b
    @user-vy5se9ko4b 2 ปีที่แล้ว +3

    Pointer is a vital concept in understanding a lot of programming languages, for example, in JAVA, even though there is no "pointer" concept here, but the reference variable assigned to a new constructed instance is the interpretation of pointer in JAVA. So I think it can be kind of hard for people without C/C++ background to learn JAVA virtual machine, memory management etc.

  • @bhavanav6560
    @bhavanav6560 2 ปีที่แล้ว +1

    the explanation of function returning pointers was the best. explaining by actually showing how the memory is allocated in stack was so good. thank you so much.....

  • @frostheavenangel
    @frostheavenangel 2 ปีที่แล้ว +8

    PS: Use '%p' instead of '%d' for printing the actual addresses via printf function.
    or use %X modifier for better print. i personally prefer 0x%X

  • @goatnoob2887
    @goatnoob2887 9 หลายเดือนก่อน +4

    If anybody is confused at 38:38, the value of r should be 205 and not 215

    • @FabriGLiza
      @FabriGLiza 6 หลายเดือนก่อน

      That's what I was thinking. Thank you! :)

  • @houtburst289
    @houtburst289 4 หลายเดือนก่อน

    One of the best if not the best courses I've seen on TH-cam, the explanations and examples are excellent. I'd recommend this course for anyone who programs, not just people who program in C/C++. You learn so much about how programs work and how to manage memory.

  • @The_motivation_guy1
    @The_motivation_guy1 ปีที่แล้ว +1

    It's truly astounding how easy the internet makes learning these days. Thanks for the tutorial, my guy.

  • @shivansh8006
    @shivansh8006 3 ปีที่แล้ว +4

    Animesh and Harsha, you both are all time great for me ❤️

  • @mattiayaghmai6341
    @mattiayaghmai6341 9 หลายเดือนก่อน +4

    Incredibly valuable lesson! he had a talent for clear and thorough explanation which is something that is rare and precious. It saddens me to learn of his passing... Rest in Peace

  • @mydoom1777
    @mydoom1777 2 ปีที่แล้ว +2

    This teacher is one of the best coding teacher I have ever seen... Unfortunately he is no more.. Rip legend

  • @soumi6720
    @soumi6720 ปีที่แล้ว +2

    REALLY LOVING THIS BEGINNER TO ADVANCED VIDEOS , I MEAN FULL COURSE VIDEOS . I HOPE YOU COME UP WITH MORE OF THEM, don't get me wrong one shot videos are great too but this helps us to understand the topic in more depth

  • @karasjunior22
    @karasjunior22 2 ปีที่แล้ว +6

    Studying for an exam to get into CS and this has helped me a lot. Thank you very much

    • @missgirl8210
      @missgirl8210 2 ปีที่แล้ว

      good luck 👍 🍀

    • @missgirl8210
      @missgirl8210 2 ปีที่แล้ว

      i did not mean this sarcastically btw lolol

    • @marvhartigan3677
      @marvhartigan3677 2 ปีที่แล้ว

      @@missgirl8210 haha its all in good spirit!

  • @mohammadalihassan4677
    @mohammadalihassan4677 3 ปีที่แล้ว +16

    As a python programmer the concept of pointers was the only thing which was difficult to wrap my head around. After watching only the first hour of this video I now have a much better understanding. Thanks!

    • @mwagaha3343
      @mwagaha3343 9 หลายเดือนก่อน

      You're welcome

  • @soumyajitdas1647
    @soumyajitdas1647 2 ปีที่แล้ว +2

    Each and every word is priceless and music to our ears . Kudos to the instructor .

  • @prayk11
    @prayk11 3 ปีที่แล้ว +1

    Thank you for making this, this video was so helpful in a lot of different ways. Amazing content!

  • @shankysays
    @shankysays 3 ปีที่แล้ว +8

    Their course was the first course i did 5 years ago for pointers and data structures. It was really great course.

  • @thesuperiorman8342
    @thesuperiorman8342 ปีที่แล้ว +4

    Thank you so much for this great tutorial. It really helped me understand the topic. It also makes me appreciate languages like C# that have garbage collection.

  • @user-zg2lr9dm2h
    @user-zg2lr9dm2h 2 ปีที่แล้ว +1

    This is the best teaching I have ever seen, and it really "free" a lot of problems in my brain.

  • @nishanarayanan24
    @nishanarayanan24 2 ปีที่แล้ว

    One of the best C++ tutorial I have ever seen. Thank you so much.

  • @LiudongZuo
    @LiudongZuo 3 ปีที่แล้ว +3

    My undergraduate major was Computer Science, C was my first programming language. Pointers confused me so much, it became a nightmare to me and I did really poorly in that course. After that, I never really did well in any programming language. I am going to watch this video carefully and kick that nightmare out of my life.

  • @harshildesai997
    @harshildesai997 3 ปีที่แล้ว +31

    Being a gujju hearing Jigabyte 1:15 gave a new nickname for my friend Jignesh.

    • @hbdarji
      @hbdarji 3 ปีที่แล้ว +1

      Alya gajab lya 😂. BTW aapdu naam sarkhu che.

    • @anshuvadhel1076
      @anshuvadhel1076 3 ปีที่แล้ว

      laya laya bhai

    • @akashthoriya
      @akashthoriya 3 ปีที่แล้ว

      Ha moj ha

  • @ramazancelik7670
    @ramazancelik7670 ปีที่แล้ว +1

    This video was truly excellent. I was able to fully understand the concept of pointers and I am grateful for the clear explanation. It is by far the best resource on this topic that I have found on TH-cam.

  • @Jyustinyan
    @Jyustinyan 6 หลายเดือนก่อน +2

    Great Course! I've finished it now and I can say I am more confident working with pointers than ever before. Many thanks for the work to make this explanation easy to understand.
    The next course for pointers in C i wanna check is titled "Pointers in C for Absolute Beginners" that was uploaded on this channel.

  • @MikeLeeGG
    @MikeLeeGG 3 ปีที่แล้ว +5

    love the fact that i can go fullscreen on my ultrawide with this video