C++ Tutorial for Beginners 13 - Passing Parameters and Arguments in Function

preview_player
Показать описание
Functions and passing arguments.
C++ passing member function as argument -
Function parameters and argumentsPass a Function as an argument in C++ -
Value Returning Functions
Рекомендации по теме
Комментарии
Автор

Thanks! I realy like your tutorials, it help me a lot on my studies :)

horacioarturocorrea
Автор

thank you very much you make way more sense than reading my book

JustMorePerson
Автор

Aa gyaa te chaa gya thaa kar ke!
boy o boy you made it look so easy

HustleMillions
Автор

this so helpuff after searching the entire youtube I found this best basic example to build concept
thank alot❤

Allah_The_Eternal
Автор

Your whole playlist is really helpful and it will stay helpful for all of us in the future too nice work. Keep it up!

ritvikpandey
Автор

thnx a lottt.I can't explain how much these videos are helping me for my studies.thnx again

shihanalam
Автор

good job! thanks for keeping it simple.

Aleph
Автор

This tutorial helped me to complete an assignment today - thank u sir

rajcodes
Автор

Sir I have a doubt. void means it won't return any value. I got to know from sources that when you are dealing with multiple results we use void and when you are expecting a single result (example greatest of two numbers) we use int. so here we are getting the sum which is the single result. when are we using void then? Please explain or did I get the concept wrong?

rupak
Автор

Sir, please make a code for any problem in every video to make us understand better, thanks

healthmaniac
Автор

So to create a larger tax calculations program if i use reference in the parameters that is all i need to do?
Lisa

tomrocker
Автор

Sir initially in the function we declared firstno and second no and then we declared a and b isn't it going to create an issue??

funpoint
Автор

Instead of using <<using namespace std;>> in the program can we use #include<conio.h>

suyogmainali
Автор

Put the variable collection statements inside the function.

shaggyromeo-juan
Автор

if we have 5 funcions with same name if calling one function with 2 parameters, which one will be called first and why?

zainabarif
Автор

I came here to clear my confusion regarding parameters and functions but I'm more confused than ever. First when you created the void function you said we have to pass parameters in the parenthesis, fine. But, then when you call it in the main function you also say that we can put parameters in the parenthesis again - the a and b variable or the numbers. You never mentioned anything regarding arguments. What are arguments then? I would like to apologize in advance if I am being dumb since I'm very new to C++. I'll be waiting for your reply, thanks.

datboydnk
Автор

Hey can you tell me what is the font name?

crypticcoding
Автор

Why are you using a VOID function? It's returning a


#include "stdafx.h"
#include <iostream>

using namespace std;

int addition (int a, int b) {

int answer = a + b;
return answer;
}


int main()
{
cout << addition(35, 25) << endl;
return 0;
}

davestr