Buckys C++ Programming Tutorials – 11 – Functions That Use Multiple Parameters

Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –






44 responses to “Buckys C++ Programming Tutorials – 11 – Functions That Use Multiple Parameters”

  1. Emylee Salkind Avatar

    ok, now if you don't mind me asking, what would be done if you want user input integers? would the instruction for that be in the declared function or would it be in main? . – .

  2. Anu Avatar

    And they are teaching me BASIC in school

  3. MJ Sanchez Avatar

    Bucky is FANTASTIC.
    I can learn C++ at my own pace.

  4. Trent Moore Avatar

    I watched his series a year ago in normal speed and learned so much. I am currently reviewing c++ for this semester and am watching 2x. This is so convenient

  5. Sodaghost Games Avatar

    Anyone watching in August 2017?

  6. gopal mali Avatar

    Hey someone please answer this. What is the real use of return answer; cause even if I do not use return answer; programme runs fine.

  7. Muhammad Nouman Avatar

    Wow , Increase video speed to 0.5

  8. techmaster90 Avatar

    You say that the users enter the variable values but I don't see how they can? Can you show me?

  9. Heaven Shadow Avatar

    What happens if you return twice in the same function?

  10. Jack Dias Avatar

    Last month i didnt know anything about programming, it was like people were speaking chinese, hahaha. Easy, calm down jack, dont freak out like a villain with a good plan. AAAAAHAHAHAHHHHHAAAA.

  11. National Parks Tube Avatar

    Love you bucyy , Ohh OMG the way you teach . aaaaah

  12. Justin Hightower Avatar

    Do you make more advertising revenue if I watch the entire ad, instead of skipping? Or is it just better for me to watch on your website?

  13. Felipe Ferreira Avatar

    Hello Bucky, would you please explain something to me.

    What is the difference between what you are showing here with the return function of int and creating a void function that cout the sum?

    void sum(int x, int y){int sum = x +y; cout << sum;}
    /* describes a function that is passes 2 parameters by value, a variable sum is declared as the sum of the passed values then output.*/

  14. Cameron Heathcote Avatar


  15. zubair the geniuse Avatar

    i really don't understand what does this return do…
    because if i write return asnwer………….. or i don't write return answer…………………. i get the same result. the answer is always shown on console…

  16. Sai Subu Avatar

    What is the difference between the program you made in Tutorial 5 and the one you made now.
    #include <iostream>

    using namespace std;
    int addnumbers(int x, int y) {
    int answer = x + y;
    return answer;
    int main()
    {int x;
    int y;
    int answer;
    cout << "Enter the first numbern";
    cin >> x;
    cout << "Enter the second numbern";
    cin >> y;
    cout << addnumbers(x,y);

    return 0;
    This is a modified program of what you showed in this tutorial. According to me both these programs (Program in tutorial 5 and 11) does the same thing (I mean both of them add numbers or they are simple calculators) . Can you please tell me the difference between the two. It will be much better if you came up with a different example. I hope you understand my question.

    Thank you

  17. Just A Guy Avatar

    This guy has 1.6 million subs and over 500k views and teaching us things to help us get a career and his patreon is only at $120 COME ON PEOPLE

  18. PaRaSiTe810 Avatar

    I am new to c++ and I am not getting why to use this parameters when you can just store the answer value and then call the function in main.I mean why use parameters at all??just store the answer in a variable and call the function directly??

  19. Bored Channel Avatar

    Why did he use int and not void ?

  20. Kastr3o Avatar

    But what is the point of it since we have [int main()] !!


    but this calculator just helps you answer questions.
    How would this help the person using the calculator answer the questions?

  22. aas aas Avatar

    im 1 years ol i love compuder

  23. Angel Of War Avatar


  24. Shrey Gupta Avatar

    what if we write cout<<answer instead of return answer

  25. Vignesh A S Avatar

    Guys, listen to the intro at 0.5x speed! Best shit ever on YT! 😀

  26. DESI CLOUD Avatar

    hello bucky,
    i dont understand why we use "return addnumbers and later print it out on the screen we can print it direclty or not???

  27. shafi ullah Avatar

    my professor is bullshit

  28. El Toro Avatar

    I see a lot of people on the comments section talking about how this is superior to college.

    I knew I was making the right decision to forgo college and just go straight to programming tutorials.

  29. Moe A Avatar

    what if i want to let the user input the numbers? do i put the "cin>>" in the int function ? and whats the difference between the int and the void function? can i use double as the name of my function or any primitive data type ?

  30. Ahmet Tarık TAPKAN Avatar

    everyone is talking about collage I am only 12 XD !!!!

  31. Computer Science Avatar

    why not :

    #include <iostream>

    using namespace std;

    int addNumbers(int x, int y){
    int answer = x+y;
    cout <<"The answer is : " <<answer <<endl;

    int main()
    addNumbers(20, 30);
    return 0;

    ? :p

  32. Burz Avatar

    What is an example of something this could be used for? I understand it, but can't think of a situation where I would need it.

  33. Prodiigy • Avatar

    So basically exactly the same as last time but your just using it like you use variables but multiple?

  34. Azad Almasov Avatar

    I was going to go to course. Now I ll drink with the money that I would waste on course. Thank you. One beer after every 4 tutorials.)

  35. janet lipao Avatar

    thank youy . i have learn alotaxv;fdghf

  36. Lindsey Durham Avatar

    why didn't you have to declare the variables before making them parameters? I am making a program for my class and I am having trouble getting my variables between functions.

  37. Grzegorz Bielak Avatar

    #include <iostream>
    using namespace std;

    int main(){
    cout << "Thank you for teaching me about functions" << endl;

    return 0;

  38. YsmnSwft Avatar

    can i cout<<answer; instead of cout<<addnumbers(); ???

  39. Nono Avatar

    Bucky but what do you do if you want the user to input the value of x and y?

  40. ILOVEGAMES Avatar

    What if we just write cout << answer in function insted of returning it and all

Leave a Reply

Your email address will not be published. Required fields are marked *