C++ Tutorial: Returning values by reference

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 27

  • @avg_user-dd2yb
    @avg_user-dd2yb 3 роки тому +5

    Most detailed lectures on yt, thanks a lot ❤.

  • @hasantaz7832
    @hasantaz7832 3 роки тому +5

    Sir keep It up youre videos are Amazing

  • @idc20627
    @idc20627 2 роки тому

    So the caller can be treated as an l value reference and therefore can be treated as an identifier?

  • @ethanking123
    @ethanking123 2 роки тому +2

    It helps a lot, thank you so much.

    • @ProfessorHankStalica
      @ProfessorHankStalica  2 роки тому +1

      Glad you found it helpful and thanks for the comment and support.

  • @balaramprajapati8870
    @balaramprajapati8870 3 роки тому +3

    good tricks

  • @__hannibaal__
    @__hannibaal__ 2 роки тому

    One More greater feature of C++ that make him closer to mathematics symbolism. Thanks.

  • @HassanAttyah
    @HassanAttyah Рік тому

    in the function bar why did you use &a not a as a parameter

    • @ProfessorHankStalica
      @ProfessorHankStalica  Рік тому

      For parameters, & is pass-by-reference. Two reasons to use it: so you can modify the argument or for efficiency so you don't have to copy an entire (trigger it's copy constructor).

  • @denishnatiuk921
    @denishnatiuk921 Рік тому

    very intuitive thank you

  • @DannysGalaxyTab
    @DannysGalaxyTab 2 роки тому

    Fantastic explanation. Many thanks for this.

    • @ProfessorHankStalica
      @ProfessorHankStalica  2 роки тому

      Glad it was helpful! Thanks for the support and feel free to tip your teacher!

  • @austinbryan6759
    @austinbryan6759 2 роки тому

    Really fun mindblowing stuff !!

  • @abdullahsharaawy
    @abdullahsharaawy 6 місяців тому

    Thanks ❤

  • @aryanviolett4606
    @aryanviolett4606 10 місяців тому

    this blows my mind right now! :D

  • @Byynx
    @Byynx Рік тому

    This background picture is of my city Porto. Why have you put it?

    • @ProfessorHankStalica
      @ProfessorHankStalica  Рік тому

      Because I ❤ Porto!

    • @ProfessorHankStalica
      @ProfessorHankStalica  Рік тому +1

      @Byynx It was such a privilege to meet you today! Please email me if you like. I feel bad I was so excited to meet you I forgot to ask your name!
      the.professor.hank@gmail.com

    • @Byynx
      @Byynx Рік тому

      @@ProfessorHankStalicaThanks, it was a privilege for me too. My name is Filipe. Filipe in portuguese it's pronounced practicaly like Philip in english.

  • @josepinos2856
    @josepinos2856 10 місяців тому

    That was so cool

  • @viktor_korotynskiy
    @viktor_korotynskiy 11 місяців тому

    I'm sorry, but why the hell do I need it?

    • @ProfessorHankStalica
      @ProfessorHankStalica  11 місяців тому

      When overloading the [ ] operator. As a standalone function though, probably never. Still something cool to do though.