Return Statement | C++ | Tutorial 15

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

КОМЕНТАРІ • 39

  • @mohamedshaaban7883
    @mohamedshaaban7883 5 років тому +22

    It is the first time I really understand what "return" function means and what it is actually used for.
    Thank you very much

    • @asyrafshukri1084
      @asyrafshukri1084 5 років тому +4

      what does return do and how you able to understand it?

  • @reiantaank3314
    @reiantaank3314 5 років тому +4

    Very clear. Thank you so much!

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

    Great explanation. Easily understood. Thanks a lot. :)

  • @mudassirwazir5745
    @mudassirwazir5745 4 роки тому +1

    Sir it was very helpful,i m from pakistan and new to c++ ,i request u to talk a little clearly as i can't get native speaker sayings ,i will be very thankful to u for this❤❤❤

  • @md.iftakharkabirsakur
    @md.iftakharkabirsakur 2 роки тому

    When I take parameter will it be similar data type like return data type all the time ?Or can I use it randomly.

  • @kalindimitrov6937
    @kalindimitrov6937 3 роки тому

    Nice explanation but how do you use answer, cube, result and num in your code without declaring them as something.

  • @ZandrichMynhardt
    @ZandrichMynhardt 3 роки тому

    Hi Mike, I've a thought: I know these materials are three years old now, but they still hold up. Would you ever consider re-doing them? The reason I ask is, when following these, I find myself re-employing earlier code to enhance whatever I'm learning here - in the case of this specific one, I added user input to get the number we're cubing, which is just intuitive. I know this will make each subsequent tutorial a little longer, but it really goes a long way in reminding us of earlier tutorials without the need to roll back to an earlier video.

  • @MIHUKI5
    @MIHUKI5 3 роки тому

    And why do we use return 0 in int main? I don't see its point.

  • @MissIsrayel
    @MissIsrayel 3 роки тому

    Thanks a lot !

  • @anonymoususer7663
    @anonymoususer7663 4 роки тому

    You taught me something so thumbs up for you and thank you for the video!!

  • @smnihal7440
    @smnihal7440 3 роки тому

    can we do return string? rather than a function

  • @prod.bytt88
    @prod.bytt88 3 роки тому

    Tq bro it really helped me to understand the the return funcation.

  • @84xyzabc
    @84xyzabc 3 роки тому +1

    you did not discuss return(0); like statement that was essential for completion of topic!

  • @sanchitkd7
    @sanchitkd7 5 років тому

    My compiler is taking too much time to execute like 4.281 s or more, any solutions?

  • @ad.7328
    @ad.7328 4 роки тому

    great video. and now i understand it better!

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

    Thank you very much

  • @moazibrahim2507
    @moazibrahim2507 4 роки тому

    so good tutorial !

  • @kurtz2491
    @kurtz2491 3 роки тому

    thank you so much

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

    Return keyword, some say it's a return function

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

      I've also heard return statement, which he used in this video as well

  • @sanjeewakrishantha8890
    @sanjeewakrishantha8890 3 роки тому

    Why are you giving your videoes to free code camp it has7M views

  • @teletubbiev3ro761
    @teletubbiev3ro761 4 роки тому

    good vid

  • @10p_b3_cruzyumie.6
    @10p_b3_cruzyumie.6 2 роки тому

    very cool man very cool

  • @devedee2393
    @devedee2393 5 років тому +2

    u turned this simple question into complex one........

  • @sameerraipure1697
    @sameerraipure1697 3 роки тому +1

    man codeblocks sucks
    Debugging is sooooooooooooooooo nerve-wracking

  • @manasmishra7777
    @manasmishra7777 3 роки тому

    can't say how to thank you

  • @JohnSmith-lr8xg
    @JohnSmith-lr8xg 6 років тому +2

    oh dang 666 views

  • @ieatmud6965
    @ieatmud6965 5 років тому +3

    what happens if we don't use return?
    or why do we use return?

    • @zouskyproductions3313
      @zouskyproductions3313 5 років тому

      Ikr why?

    • @lollolzi2996
      @lollolzi2996 5 років тому

      @@zouskyproductions3313 did u figure out why we use ''result''??

    • @hanadotexe
      @hanadotexe 4 роки тому

      thats what i dont understand!!

    • @dhanukalakshan1553
      @dhanukalakshan1553 4 роки тому

      @@hanadotexe we use return so that we can do something else with the information that got returned from the function.

    • @anonymoususer7663
      @anonymoususer7663 4 роки тому

      @@lollolzi2996 result is just a variable.

  • @eliaspianomusic
    @eliaspianomusic 3 роки тому

    Very clear, thanks a lot!