Function Pointers in C / C++

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 261

  • @toruwalt
    @toruwalt ปีที่แล้ว +30

    9 years later, you are still impacting the life of a CS Student. Thanks alot 💗💗💗

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

    This playlist of pointers is amazing... Can't find anything like this on Internet

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

      Ikr

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

      Exactly

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

      They're really to the point!

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

      absolutly

    • @Greenndjdhdjjd
      @Greenndjdhdjjd 7 หลายเดือนก่อน

      Really.This is a playlist of c programming we can rarely find.This person is an excellent person who have dived into the c programming.❤❤❤❤

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

    2019 and your playlist is a gift for humanity

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

      Rip humbleflow. You are a gift to us

  • @Greenndjdhdjjd
    @Greenndjdhdjjd 7 หลายเดือนก่อน +1

    Although you were died,you are still alive in thousands of members heart including me, you are still aliving and saving our lives brother.Love you brother❤❤❤❤

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

    Are you the one created C/C++,your explanation is too good.Thank you very much

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

    Your series of lectures on pointers amazing. It cleared all my concepts and made pointers very easy for me.

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

    This playlist must be archived so that it won't be lost, what a great work!

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

    You explain everything in a very simple and easy way to understand. You are really great and talented. It would be great if you could make a c++ full course that covers all the c++ language. For me it's much better than learning at the university from all teachers. Thank you so much. Please do the full course.

  • @Greenndjdhdjjd
    @Greenndjdhdjjd 7 หลายเดือนก่อน +1

    Really.This is a playlist of c programming which I could rarely find.This person is an excellent person who have dived into the c programming.❤❤❤❤

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

    ALX introduced this channel to me. Never looked back since. My no. 0 guide for C.

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

    These are immortal lectures. Every one of them. No one can replace. Period

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

    Thanks for emphasizing the difference between with and without parenthesis in the declaration.

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

    "High level language like C or Cpp" Men I come from javascript! I really appreciate your help with this video. Has made my transition very smoothly in computer science. Appreciated.

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

    2021 and you are still the best!!!!

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

    Students in the 22nd century will also refer to this! Hats off to the best explanation

  • @Greenndjdhdjjd
    @Greenndjdhdjjd 7 หลายเดือนก่อน +1

    2024 you are still the best in You Tube for c programming friend😊😊❤❤

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

    I wish I could have a teacher like you, sir. Thank you !!

  • @peterdawson2276
    @peterdawson2276 6 ปีที่แล้ว +5

    Love your work dude, one of the best educators I have watched.

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

    this is it!! Best explaining with all the possible ways to understand. Thank you so much

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

    first indian video that actually helped me

    • @arthurlee8980
      @arthurlee8980 6 ปีที่แล้ว

      hey now

    • @RussTeeTrombone
      @RussTeeTrombone 6 ปีที่แล้ว

      Rare

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

      There are a lot of small Indian youtubers who have some of the greatest tutorials on TH-cam. They helped me so much during my Calculus and Physics classes. Not to mention this channel for CSE

    • @abeard1
      @abeard1 5 ปีที่แล้ว

      @@arcaneben9171 Yes but there is so much Indian programming related material that some of them must be garbage

    • @miguelfajardo2731
      @miguelfajardo2731 5 ปีที่แล้ว

      firts indian that i can understand. I'm latin, and my english is average, but understand this indian is very difficult.

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

    ALMIGHTY BLESS YOU WITH ALL KINDS OF WEALTH

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

    That was such a clean explanation. Thank you.

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

    char* means you have a data type that is pointer to character. Is this what you want to know? At what time in the video are you confused?

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

      Name is ptr variable its expecting a address.. how are we passing a string then? Can someone explain?

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

      ​@@rakeshramesh9248 String is implemented as an array of characters in C. When you forward an array to a function, you actually forward the address of the first element of that array. So, &array[0] = array in C. In this case, you just forward the address of the first element of the array of characters, and that is your String.

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

      @@njegostrajkovic4451 Did you mean &array[0] == array instead of &array[0] = array?

    • @123akash121
      @123akash121 3 ปีที่แล้ว

      @@gammyhorse yea he was basically trying to say that &array[0] and array are equivalent and can be used interchangebly

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

    Look i have been looking for another thing and i see this and i now know that functions can return pointers in a easy way even my understanding of function pointers is better. Thank alot❤❤

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

    Thank you mycodeschool. I am learning a lot from you.

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

    I wish I could meet this legend one day.

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

    simple and at the same time I understood the concept clearly ! Thank you so much :)

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

    This guy is selected for heaven's list. Thank you so much!

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

    Great!That channel gives me strong programming foundation.

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

    Really a nice turorial. clean and clear presentations. good job and thanks a lot

  • @royceguo9675
    @royceguo9675 7 ปีที่แล้ว

    In C, it's allowed primarily because there's not much else the name of a function, by itself, could mean. All you can do with an actual function is call it. If you're not calling it, the only thing you can do is take the address. Since there's no ambiguity, any time a function name isn't followed by a ( to signify a call to the function, the name evaluates to the address of the function. --recite from stackoverflow

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

    Thank you Harsha Suryanarayana AKA humblefool. RIP Legend.

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

    Splendid explanation even after years. Thanks a lot boss.

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

    Really appreciated. Pls upload more. Very clearly explained. Thanks for efforts.

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

    OUTSTANDING EXPLANATION! 🙌

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

    *My takeaways:*
    1. What is a function pointer 1:30
    2. How to create a function pointer 6:25
    3. Function pointer vs function that returns a pointer 8:39

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

    It's 2021 and this is still the best

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

    Man this is wayyy more than just function pointers. Will probably help a lot of people tho

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

    its crazy how much important pointers is in C++ but my professor just glossed over it like its nothing.

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

      The Professor don't want to indulge themselves in pointer | Even some great programmers pull out their leg when pointers enter the room.

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

      Inclined scorpio everybody is gangsta until pointers start walking in

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

      @@inclinedscorpio lol yeah,everyone's a gangster until pointers come into the picture.

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

      University professors don't know jackshit about teaching, so they just graze through the courses like they are nothing.

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

    Full of knowledge but still compact! Great!

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

    Thank you for such a clear explanation! you're the best!

  • @Naveen-ef2dg
    @Naveen-ef2dg 6 ปีที่แล้ว

    Really lucky to find this channel

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

    Thank you very much. Best tutorial on function pointers.

  • @sanjayreddy704
    @sanjayreddy704 8 ปีที่แล้ว

    you are simply best. Simple and superb explanation

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

    One of the best videos

  • @roshenw
    @roshenw 11 ปีที่แล้ว

    Thank you. you save lives with your teaching skils.!

  • @william9496
    @william9496 4 ปีที่แล้ว

    You are a gift from life

  • @casualgamer1097
    @casualgamer1097 5 ปีที่แล้ว

    ALBERT IS BACK !!!!!!!!

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

    For example at 11:50, under main you have void (*ptr)(char*);
    I don't understand why the asterisk is following the char, yet it's before the ptr.
    Thank you.

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

      here ptr is pointer variable and char is pointer datatype.

  • @Greenndjdhdjjd
    @Greenndjdhdjjd 7 หลายเดือนก่อน

    You are a gem for me❤❤❤❤

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

    Very nicely explained! Thanks!!!

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

    Perfect tutorial

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

    Great Explanation!

  • @racerx1326
    @racerx1326 10 ปีที่แล้ว

    you are amazing. thank you so much. you are the best at explaining. your so concise, and clear.

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

    Thanks from 1:31 to 4:13

  • @fevicoI
    @fevicoI 3 วันที่ผ่านมา +1

    RIP humblefool sir.

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

    Really nice explaining and good quality video

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

    Best explanation

  • @AmareshBeuria
    @AmareshBeuria 9 ปีที่แล้ว

    Thank You for explaining the concept in such an amazing manner.

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

    Hello, i have the same problem to understand void (*ptr)(char*). pointer function expects for an address as argument, but when it gets the address of "Tom", should in void function as output like this :printf("Hello %s
    " , *name); why here no * for name. thank you.

  • @JayPatel-zu5pj
    @JayPatel-zu5pj 2 ปีที่แล้ว

    Conversion of string to char* is not allowed in C++, so this works
    void printNum(const char* a){
    cout

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

    Thank you very much for this wonderful lesson!

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

    Excellent guidance, Thank you

  • @ganeshchandra2951
    @ganeshchandra2951 8 ปีที่แล้ว

    You are awesome. i am in love with your teaching

  • @Jonathan-ru9zl
    @Jonathan-ru9zl 2 ปีที่แล้ว +1

    it just proves that we don't necessarily need university degree today when we have those great stuff available.

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

    This is interesting, creating "function pointers" which are pointing to a function's address. Never knew such concept existed. I have a question, does it matter if the function pointer points to the function prototype or function definition? Thanks.

  • @morampudiakhil516
    @morampudiakhil516 4 ปีที่แล้ว

    Great Video and good explanation! But why do we use function pointers?

  • @tigernaman
    @tigernaman 10 ปีที่แล้ว

    it is a best tutorial you make my concept clear thanks, i am waiting for new tutorial.

  • @nishigandhapatil6484
    @nishigandhapatil6484 7 ปีที่แล้ว

    nicely explained..
    subtitles makes us understand more clearly.☺

  • @greymind0072
    @greymind0072 4 ปีที่แล้ว

    why this dude stopped uploading more new videos on coding stuff....the guy is fucking amazing when comes to teaching programming things

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

      He died a few years back :/

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

    This is just beautiful broo

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

    this was well explained, thanks

  • @oguzkale1278
    @oguzkale1278 10 ปีที่แล้ว

    Extremely clean explanation. Thank you ! :)

  • @Roocky515
    @Roocky515 10 ปีที่แล้ว

    cant avoid comment its superb.....

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

    Thank you, sir.

  • @zbera97
    @zbera97 6 ปีที่แล้ว

    Amazing explanation. Thanks so much.

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

    thank you very much for this work.

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

    thanks, very informative

  • @easonzheng3220
    @easonzheng3220 8 ปีที่แล้ว

    Awesome explanation. I've seen the point in this. Thank u.

  • @陈东宇
    @陈东宇 7 ปีที่แล้ว +15

    I love how you say "RRRRRRRRRRRRRAM" ;)

  • @prarthanapuranik3386
    @prarthanapuranik3386 5 ปีที่แล้ว

    Really helpful.. Can you please add FPGA, HDL and Verilog related lessons?

  • @anondoggo
    @anondoggo 5 ปีที่แล้ว

    This is so helpful. Thank you!!

  • @ivlog4955
    @ivlog4955 5 ปีที่แล้ว

    God level teaching 😁

  • @TheAnamMahmud
    @TheAnamMahmud 5 ปีที่แล้ว

    Awesome lecture

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

    Where have you gone 😞..man!

  • @HK-no9wm
    @HK-no9wm 7 ปีที่แล้ว

    Amazing explanations. Thank you for taking time out to help. And can plz you please do video lectures on computer archeitecture?

  • @BARaaz04
    @BARaaz04 5 ปีที่แล้ว

    Nice explanation.

  • @karthikanair644
    @karthikanair644 7 ปีที่แล้ว

    Very much understandable. Thank you

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

    Thank you so much for your videos, they are really awesome :)

  • @nhantontrong5255
    @nhantontrong5255 6 ปีที่แล้ว

    omg....great! easy to understand....thank you so much

  • @erail2731
    @erail2731 11 ปีที่แล้ว

    U r doing good job

  • @jenkov2155
    @jenkov2155 8 ปีที่แล้ว

    Excellent video, thanks.

  • @prajaktajagtap8699
    @prajaktajagtap8699 8 ปีที่แล้ว

    very nicely explained..thank you sir

  • @Vaib_agg
    @Vaib_agg 9 ปีที่แล้ว

    thank u sir u have cleared my doubts bt one thing i haven't understood is that why have u changed c to *ptr in main if we use *c then what will be the difference

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

    Thank you

  • @shrishailctalukar
    @shrishailctalukar 8 ปีที่แล้ว

    Your explain concisely.
    Keep up (:

  • @aswin2pranav
    @aswin2pranav 8 ปีที่แล้ว

    Thank you so much... Real gratitude.

  • @mrbilalkhan
    @mrbilalkhan 7 ปีที่แล้ว

    Amazing tutorial. thanks for the upload.

  • @purposeoflife47
    @purposeoflife47 6 ปีที่แล้ว

    Very good lecture

  • @mycodeschool
    @mycodeschool  11 ปีที่แล้ว

    Thanks a lot Raja :)

    • @atharvamishra4848
      @atharvamishra4848 4 ปีที่แล้ว

      @Alka Oraon is he dead i heard that his partner is dead in a car crash, and his name is animesh and working in google.