CPP Function Parameters | Returning Values from Functions | C++ Video Tutorial

preview_player
Показать описание
In this c++ / cpp programming video tutorials / lecture for beginners video series, you will learn about the function parameters and returning values from the functions in detail woth example.

You will learn what are functions,what are function parameters,how to pass parameters to functions,how to return values from functions,what is the use of return statement,what are actual and formal parameters in detail with example.

Learn Programming in HINDI at our youtube channel

Catch us on SocialMedia
Рекомендации по теме
Комментарии
Автор

Your way of teaching is so very easy to learn for a person who doesn't know to say

austingeorge
Автор

The way you are teaching is easy to learn, explaining all the syntaxs meaning fully. Good Tutorials!

vijisebastian
Автор

You are so much better than Bucky. Bucky has no rhyme or reason to the order in which he does his video list. Your video list is logically laid out, you explain every step, use vocabulary that programmers use often and define this vocabulary as you go. Hands down much better than Bucky, thanks a bunch.

rationalthinker
Автор

i m a beginner and ur videos are helping me alot.But, at last if u give some question then it will be pretty helpful

AMANKUMAR-xyxb
Автор

Fantastic, easy, lucid, comprehensive and simply explained. Enjoyed fully. Saw 22 videos from beginning today. Much better than any books available on the subject. Keep it up and cheers!

sgautamjain
Автор

Sir your video tutorials are great . But it could be more better if you add some practice problems on every topics separately

prateekvarshney
Автор

Hi everyone, who notices that even if we do not return any values our code still works perfectly .I did my code and did not add return a+b and it worked .I ask chat gpt and it says the return value is only useful if we want to use it somewhere else like storing it to a variable or passing it to another function .I hope you understand and it helps someone else who is just starting

Zainabologunro
Автор

your videos are great and so easy to learn keep up the good work

javeriaahmed
Автор

hello anil sir .i am quite gud in c programming.. i think the same concepts are applied here ..give me a suggesion how can i learn c++ now ..means from which video i started learing ..

rajubejawada
Автор

This is a good format, keep it up, I hope to see a advanced CPP section.

sthebassest
Автор

why you use semicolun after display function
while after main function you didn't use any semicolun .why ?

aashishrana
Автор

Which 1 is more benefecial ?
using return statement in the function OR
giving cout command in the function
& also what difference does it causes in execution?

rutujavijaykumar
Автор

good explanatory skills anil bhai!! thank you for explaining c++ ...its very helpful

likithreddy
Автор

Question, so do you ALWAYS need to declare a variable that will display the return of the function even if you had already said return a+b? Or did you only do that because you wanted to say "the result is" ?

carlosmiguel
Автор

great work !!! you r doing verry good continue

arduinotutos
Автор

One thing that bugs me is the following: Why would you call a function, such as the 'display' function before you build the body of the function with statements? It seem backwards to me and that you should fully build the function before calling it?

rationalthinker
Автор

int add(int a, int b) {
cout << "Enter the first digit" << endl;
cin >> a;
cout << "Enter the second digit" << endl;
cin >> b;

if(a < 5 && b < 5) {
cout << "Please enter something more than 5" << endl;
} else {
return a+b;
}
}

int main() {
int result = add(4, 4);
cout << result;
retuen 0;
}

What arguments do we pass in the add function in Main. I am passing any numbers(4, 4) and it just runs fine, and it also checks my condition. But passing 4 and 4 doesnt make any sense .

aankit
Автор

It is necessary to declare the function prototype?
what if I put the function body before I call it, so the function prototype will be unnecessary to use?

yosrimhamdi
Автор

sir why cant we type the name of the variable in the function prototyping itself
lkke void display( int a, int b );

nimminirmala
Автор

can you pass values from one function to another without having MAIN function mediating? Say in int ELFunction you get a return value of 50, can you use that return value in another fucntion without spoonfeeding it through main into the 2nd function?

ironysteeth
join shbcf.ru