Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more video content just for you ✌
I was watching your Data Structures and Algorithms playlist and came here to revise some concepts that I forgot. Honestly, the way you explain things is far better than any other teacher. I especially like the notes you provide and the explanations you give using Computer Memory. Thank you so much for this, and all the best for your future endeavors bro!!
+Nathan Bruce hello, thank you so much for such ha positive response. This really means a lot to me. 😇 Do share the video with your friends and contacts ✌
Simple Snippets Im the only person here in my enviroment, who's interrested in learning C++ or other languages. I have a dream to become a programmer and I will achive this goal. I will give a shoutout to you, if it's time :D
Hello buddy thank you so much buddy. I'm really glad to hear that you are so determined to learn C++. Keep up the spirit and support and I'm sure you'll achieve your goals 😇✌️
Thanks bro 🤟 glad to know you liked this video and yes the idea is to make it as easy as possible 😁 I would request you to please share the video with your friends too bro 🤟
Glad it helped Gowri! Please do share the videos and channel with your friends too. Thats the biggest help and support you can give back to our channel!
Thank you so much for the positive response buddy 😇 I would request you to please share the video with your friends and contacts. That will be the best help and support for the channel 😊✌️
Thank you do much buddy for such a wonderful response and comment. Please share the video with your friends too. That'll be the best help and support for our channel 😊✌️
Superb explaination , with as simple as possible , the best explaination , just by seeing this 1 video ,i susbcribed to u r channel, hope i r videos will play more hours in my mobile 👍👍
To develop a calculator for the basic arithmetic operators (+, -, *, /, %), where we have to deal with at least 11 digit numbers and the numbers can be of with decimal point or without decimal point. SO in the above case we have two options regarding code efficiency and code complexity: a- Function overloading b- Class Template Kindly answer me which option will be the best and arguments in favor of it?
in your example code why is it so that compiler is not executing function number 2 to perform the 4th and 5th addition because function 2 makes the fucntion 5 and 4 useless infact 1 also.
I did understand your doubt. If you enter - add(5,4) it's (int,int) which means function 1 should be called right? But what you're saying is when you input add(5,4) still function 2 is called? Is that what you're saying?
Thank you so much muskan. So cool to know this and thank you for your support always ✌️ I would request you to please share the videos with your friends too 😊
A really silly doubt here, but consider the module: void print (int a); Here the function is void type so there is no return. But then again the return type mentioned in the parameter is int. So does the function return an integer value or do we have to use cout to display?
The parameter that we pass is NOT a return type. if you pass any parameters in the function, but your return type is void, then you will have to use cout to display those parameters. Lets say your return type is int and your method is performing addition of 2 integers, in that case you will pass 2 integers as parameters and add them and then return the addition value since your functions return type is int. ✌
The function type is the return value. A void cannot return anything else than nothing. A void example(int a); cannot return a value. A cout is not really a return, we can use the int, but not send it.
Thank you very much buddy. I'm so happy to hear such a wonderful comment from you. Please do share this video with your friends and contacts as that will be the best help and support for our channel 😇✌️
Nice to watch your tutorial. In this video you have supplied the arguments while writing the code. How can it be written so that a user is prompted to input two values and the compiler recognizes the data type automatically and choose the appropriate function? I have just started learning C++ .
+Harsha Goud thank you so much for such a wonderful comment ❤😇 it's so nice to hear that you love this channel. Do share it with your friends and contacts 😬
Thank you so much buddy, I am glad to hear this from you. Please do share the videos with your friends & Definitely SUBSCRIBE. Thats the biggest help & support 😇✌
Hey, Thank you so much buddy. Really glad to hear this from you. Please do share the video with your friends too. That'll be the best help and support for the channel ✌️😋
Hi Tanmay, love your videos. Please explain what will happen if we have function overloading on the basis of no. of parameters as well as default arguments in the function with more no. of parameters. Data types of all parameters be same! Will it show an error?
Well since ever function will be different in some kind, only one of the function will be called depending upon the number of parameters, type of parameters or the order of parameters. That's the whole idea of function overriding ✌️😇
Okay, I don't think you understood what I said. The function which is called depends upon the function protoype which you use while calling it. Okay lets take an example - suppose you have 6 functions okay - add() add(int x) add(int x, int y) add(double x, double y) add(int x, double y) add(double x, int y) Now in the main() function or any other function you make a function call - add(4,5) Which function will be called here ? observe the function call and the parameters passed here. Since both the parameters are int type, the 3 add function will be called. Again lets say you make another function call- add(5, 7.5465) Which function will be called here ? observe the function call and the parameters passed here again. Since since first parameter here is a int and second parameter is a double the 5th function will be called and not 6th. Getting it ? One more example - lets say you make another function call- add(6.54, 9) Which function will be called here ? observe the function call and the parameters passed here again. Since since first parameter here is a double and second parameter is a int the 6th function will be called and not 5th. I hope this would clear your doubt about which function will be called and when and why. Regards.✌
@@SimpleSnippets The text file contains the formula of a chemical compound (not necessarily existing). The name of the element begins with a capital letter. If the number of some elements in a compound is more than one, then after the name the number of elements is indicated. Formula examples: H2O, HCl, O2, H2SO4, O4H2S, NaCl. For the correct formulas, obtain the molecular weight of the compound. Use a table whose element key is the name of the chemical element, and the information part is the weight of the element. The information in the table download from a text file.
Hii u teachs well n gud ... But i have some doubts .. 1>Which compiler do you use can u tell me the name ? 2>Can we use two function with different name in same program?
Thank you very much Ravikant for the positive feedback. Glad to hear that you liked the video. Here are the answers to your questions - 1 - It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler 2 - Yes we can you any number of functions with different names, infact we can use same named functions also provided it has different - a) no of arguments b) different datatyped arguments c) different order of arguments. This feature is known as function overloading in C++
So overloading means multiple functions with SAME name, SAME statements inside it's brackets but everything else like it's return, parameter type and etc can be Different?
Thank you so much Neeraj 😊 Well I think I have decent English because I listen to a lot of English songs, watch a lot of Hollywood movies, chat in English etc. So over the course of time my spoken English got better ✌️😊
Hahaha yes ye cheej face ki hai bohot Maine bhi. Ek point ke baad farak nai padta ki log Kya bolte aur sochte bro. You keep working on improving yourself 🤟😊
Hello👋🏿 Could you help me, please? 🙏 For this Assignment, write a program in C++ to implement following Programming concept. There is no standard output format for this Assignment. You have to implement the following features in a program - 1. Automatic Variable 2. Static Variable 3. Default Arguments 4. Reference Variable 5. Reference Parameter 6. Function Overloading 7. Nesting Function 8. Recursive Function
I guess in future it will not be about the degree or course. It'll be mostly about the skills and the technology which you Excel in ✌️ Ultimately it depends on what interests you have ✌️
Thank you so much Karthik, glad to hear this from you. Please do share the video with your friends and contacts. That will be the best help and support for our channel ✌😇
I think you're teaching wrong bro because the same function having two different return types cannot be overloaded.it causes ambiguity.pls check it out.
If you see the presentation I have not mentioned anything about return type of the function. The only 3 parameters which can be used for overloading are - 1) Different data type of parameters 2) Different number of parameters 3) Different order/sequence of parameters This is what I displayed on the presentation screen 😇
Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more video content just for you ✌
Super na......tmrow test mass pannirlam.......very thanks😊😊😊😊😊😊
All the best for your exams. 👍
Can u do videos on Standard Template Library (STL) in c++?
I was watching your Data Structures and Algorithms playlist and came here to revise some concepts that I forgot. Honestly, the way you explain things is far better than any other teacher. I especially like the notes you provide and the explanations you give using Computer Memory. Thank you so much for this, and all the best for your future endeavors bro!!
Seeing your lectures with 1.25X speed gives me wings
😂😅😇🙏
Clear and concise. Thanks!
How fast you type is soothing
+Nathan Bruce hello, thank you so much for such ha positive response. This really means a lot to me. 😇 Do share the video with your friends and contacts ✌
online classes fucked me up so here we are now. great video, you're saving my grades!
My exam's tomorrow and your videos are helping me a great deal! THANK YOU! 😇
This helped me understanding how function overloading works. Thank you Snippets.
Hey buddy I'm so glad to hear this from you. Do share this video with your friends and contacts and help others too by sharing the knowledge 😇✌️
Simple Snippets Im the only person here in my enviroment, who's interrested in learning C++ or other languages. I have a dream to become a programmer and I will achive this goal. I will give a shoutout to you, if it's time :D
Hello buddy thank you so much buddy. I'm really glad to hear that you are so determined to learn C++. Keep up the spirit and support and I'm sure you'll achieve your goals 😇✌️
Simple Snippets Thank you man. Youre great at motivating me.
The concept is so clear now. Thank you so much.
It was so easy to understand. Best video,came crossed ✌🏻
Best video I watched so far related to function overloading!!
Simply love the way you teach. ... I guess its because you make it that simple 😊😊
Thanks bro 🤟 glad to know you liked this video and yes the idea is to make it as easy as possible 😁
I would request you to please share the video with your friends too bro 🤟
Real happy' broo
After listening to your video I just feel like i can write my exam right now
i am studying class 12 , thanks for simply and easy way of teaching function overloading within 10 mins.
Most welcome buddy. I'm glad you liked this video. I would request you to please share it with your friends too ✌️😊
@@SimpleSnippets OK bro I will share it to all my friends, and thanks for your reply.
Most welcome bro 😊 your support means a lot to our channel and our tech community 😊✌️
Really in very easy way you teach .Keep going. All the best.
Thank you, I will Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Thankyou for the video bro what a great explaination in such a simple manner.
Thank you so much buddy, Please do share the channel with your friends too. Thats the biggest help and support 🙂
Thanks for the playlist it helped amazingly.
Glad it helped Gowri! Please do share the videos and channel with your friends too. Thats the biggest help and support you can give back to our channel!
u cleared my all concepts.Thank u very much
Thank you so much for the positive response buddy 😇 I would request you to please share the video with your friends and contacts. That will be the best help and support for the channel 😊✌️
Very clear to understand. Great Sir
Glad to hear that. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
thanks alot ,,i think i have gained some knowledge ,,the practical aspect is more reliant than theory
How compiler differentiates between overloaded functions and how linker mapped these functions in memory?
Satisfied with the explanation.... Good.
+Bhumi Soni thank you so much for the positive response. Do share the video with your friends and contacts 😊✌
Thank u tomorrow is my exam this video helped me to know the concept very clearly in just 10 min......
Thank you do much buddy for such a wonderful response and comment. Please share the video with your friends too. That'll be the best help and support for our channel 😊✌️
thank you bro because of your example i could understand this concept properly.
Thats great to know bro, please do share the videos with your friends too ✌
Superb explaination , with as simple as possible , the best explaination , just by seeing this 1 video ,i susbcribed to u r channel, hope i r videos will play more hours in my mobile 👍👍
You have to put semicolen in 14th line return(a+b);
To develop a calculator for the basic arithmetic operators (+, -, *, /, %), where we have to deal with at least 11 digit numbers and the numbers can be of with decimal point or without decimal point. SO in the above case we have two options regarding code efficiency and code complexity:
a- Function overloading
b- Class Template
Kindly answer me which option will be the best and arguments in favor of it?
int add(int x, int y)
{
cout
in your example code why is it so that compiler is not executing function number 2 to perform the 4th and 5th addition because function 2 makes the fucntion 5 and 4 useless infact 1 also.
I did understand your doubt. If you enter - add(5,4) it's (int,int) which means function 1 should be called right? But what you're saying is when you input add(5,4) still function 2 is called? Is that what you're saying?
@@SimpleSnippets yes exactly ...
Will have to check up on this. I don't think I've faced this situation before 😅✌️
@@SimpleSnippets yeah sure take your time but please tell me if you figure it out..thanks :)
good explanation,correct speed
+V AMBROZ thank you so much for the positive review. Do share the video with your friends and contacts 😇
Thank you bro, I came to know a lot
Glad to hear that. Please do share the videos and our channel with your friends if you want to genuinely support me & our channel!✌😇
btw i studied DE from your channel & i managed to clear it😋😋thanks a lot
Wow that is so cool Muskan😇 Very happy to hear this from you & proud of you ✌
@@SimpleSnippets thanks to the best onl9 tutor 😀😍
Thank you so much muskan. So cool to know this and thank you for your support always ✌️
I would request you to please share the videos with your friends too 😊
@@SimpleSnippets i already did 💖😃
Amazing muskan 😊
A really silly doubt here, but consider the module:
void print (int a);
Here the function is void type so there is no return. But then again the return type mentioned in the parameter is int. So does the function return an integer value or do we have to use cout to display?
The parameter that we pass is NOT a return type. if you pass any parameters in the function, but your return type is void, then you will have to use cout to display those parameters.
Lets say your return type is int and your method is performing addition of 2 integers, in that case you will pass 2 integers as parameters and add them and then return the addition value since your functions return type is int. ✌
The function type is the return value. A void cannot return anything else than nothing. A void example(int a); cannot return a value. A cout is not really a return, we can use the int, but not send it.
How can I use Function overload with the "string" Datatype???
best explanation and awesome example......you're best
Thank you very much buddy. I'm so happy to hear such a wonderful comment from you. Please do share this video with your friends and contacts as that will be the best help and support for our channel 😇✌️
Nice to watch your tutorial. In this video you have supplied the arguments while writing the code. How can it be written so that a user is prompted to input two values and the compiler recognizes the data type automatically and choose the appropriate function? I have just started learning C++ .
probs a tad late now but simply prompt the user for input within the function and use cin>> to input whatever value ya want
Thank you so much ❤️
Tq soo much bro well done plz do board classes videos too easy to understand
Good Channel and good way of Teaching. Stay blessed and keep it up . I enjoyed and learned a lot.
Thank you very much for such a positive response. Do share the video with your friends and contacts 😇✌
yes i do... keep it up ... stay blessed
+Usama Safdar Khn thank you very much 😇
One of the best video
Thanks buddy, I would request you to please share the video with your friends too. That will be the best help and support ✌😇
@@SimpleSnippets bhai pure class mai share kr diya hu no problem
Thank you bhaaai 😉😁 means a lot to me ✌️ keep up the support ♥️
you the best bro, i really learned a lot today bro
Thats great to hear buddy, Please do subscribe and share our channel with your friends too! Thats the biggest help and support 😇
My fav channel
+Harsha Goud thank you so much for such a wonderful comment ❤😇 it's so nice to hear that you love this channel. Do share it with your friends and contacts 😬
VERY WELL EXPLAINED
Thank you so much buddy, I am glad to hear this from you. Please do share the videos with your friends & Definitely SUBSCRIBE. Thats the biggest help & support 😇✌
very good explanation..... Thank you.....
Hey, Thank you so much buddy. Really glad to hear this from you. Please do share the video with your friends too. That'll be the best help and support for the channel ✌️😋
how to get input from the user
like how to use "cin>>" for same variables???
Well explained 👍👍
Great work dah... Keep up uh tuts more... 👍
+Sourabh Savi you're welcome buddy. Great to hear from you ✌😊
Bro You're saying in main function that cout
You made it very easy to understand! Thank you :D
Thank you so much buddy. I would request you to please share the video with your friends also. That will be the best help and support ✌️😇
Tanks bro....
Please keep it up...❣️👍
Thank you so much buddy, please do share the videos with your friends too. Thats the biggest help and support for our channel ✌
Hey @simple snippets, if arguments are same but return type is different, can we have function with same name in that scenario?
No
@@SimpleSnippets ok thanks a lot
Link for the c++ compiler???
use codeblocks
what if i need to return area of a rectangle and a paralellogram would function overloading not work in that scenario
Please make a video on classes and objects .😄
Awesome explained bro
😄😃😄😃
The video is already up buddy. Complete C++ programming playlist is there on the channel. Do check it and let me know how you find it 😋
Hi Tanmay, love your videos. Please explain what will happen if we have function overloading on the basis of no. of parameters as well as default arguments in the function with more no. of parameters. Data types of all parameters be same! Will it show an error?
Well if the number of parameters is different then it shoudl work. How about you try the same yourself and let me know whats happening 😉
if we have 5 funcions with same name if calling one function with 2 parameters,which one will be called first and why?
Well since ever function will be different in some kind, only one of the function will be called depending upon the number of parameters, type of parameters or the order of parameters. That's the whole idea of function overriding ✌️😇
Depending upon the number,type and order of parameters, which will be called first and why? You didn't really answered my question sir.
Okay, I don't think you understood what I said. The function which is called depends upon the function protoype which you use while calling it. Okay lets take an example -
suppose you have 6 functions okay -
add()
add(int x)
add(int x, int y)
add(double x, double y)
add(int x, double y)
add(double x, int y)
Now in the main() function or any other function you make a function call -
add(4,5)
Which function will be called here ? observe the function call and the parameters passed here. Since both the parameters are int type, the 3 add function will be called.
Again lets say you make another function call-
add(5, 7.5465)
Which function will be called here ? observe the function call and the parameters passed here again. Since since first parameter here is a int and second parameter is a double the 5th function will be called and not 6th.
Getting it ?
One more example -
lets say you make another function call-
add(6.54, 9)
Which function will be called here ? observe the function call and the parameters passed here again. Since since first parameter here is a double and second parameter is a int the 6th function will be called and not 5th.
I hope this would clear your doubt about which function will be called and when and why.
Regards.✌
Spent more than an hour on it but not getting it. Anyways Thanks.
🙆
Well I think you should watch few more videos on this topic. Maybe you'll get clear idea after a few more videos ✌️
This really helped. Thank you.👍✌️
Thanks for the positive feedback buddy. Do share the video with your friends too 😇
Wow,, I love it that you speak english exellent...peace🤘✌
Thank you so much buddy 😊🤟 I would request you to please share the video with your friends too 😊
i did so already, and i need help
@@SimpleSnippets i have a question
Sure ask me
@@SimpleSnippets The text file contains the formula of a chemical compound (not necessarily existing). The name of the element begins with a capital letter. If the number of some elements in a compound is more than one, then after the name the number of elements is indicated. Formula examples:
H2O, HCl, O2, H2SO4, O4H2S, NaCl.
For the correct formulas, obtain the molecular weight of the compound. Use a table whose element key is the name of the chemical element, and the information part is the weight of the element. The information in the table download from a text file.
Hii u teachs well n gud ...
But i have some doubts ..
1>Which compiler do you use can u tell me the name ?
2>Can we use two function with different name in same program?
Thank you very much Ravikant for the positive feedback. Glad to hear that you liked the video.
Here are the answers to your questions -
1 - It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler
2 - Yes we can you any number of functions with different names, infact we can use same named functions also provided it has different -
a) no of arguments
b) different datatyped arguments
c) different order of arguments.
This feature is known as function overloading in C++
Thanks a bucket bro!!🌟
hey i have a topic called "overloading" in my syllabus.does it include both function & operator ?
Yup it broadly applied to both ✌️
So overloading means multiple functions with SAME name, SAME statements inside it's brackets but everything else like it's return, parameter type and etc can be Different?
No, It means SAME name but Different type or parameters, different number of parameters or the different order of parameters ✌
Easy to understand and very cool
Can i know how u speak so good english 😍😍
Thank you so much Neeraj 😊
Well I think I have decent English because I listen to a lot of English songs, watch a lot of Hollywood movies, chat in English etc.
So over the course of time my spoken English got better ✌️😊
Hahaha yes ye cheej face ki hai bohot Maine bhi. Ek point ke baad farak nai padta ki log Kya bolte aur sochte bro. You keep working on improving yourself 🤟😊
Hello👋🏿
Could you help me, please? 🙏
For this Assignment, write a program in C++ to implement following Programming concept.
There is no standard output format for this Assignment. You have to implement the following
features in a program -
1. Automatic Variable
2. Static Variable
3. Default Arguments
4. Reference Variable
5. Reference Parameter
6. Function Overloading
7. Nesting Function
8. Recursive Function
Tysm fo ths video its very helpful 😊
Thank you so much Roopa for such a positive feedback. It'll be very helpful if you can share the video with your friends too 😇✌️
Simple Snippets okay sir I'll definitely share😊
Thank you so much for the support 😇
Sir is function overloading in below cases work
void display (char*p);
void display (const char*p);
Plz reply me
Marvellous
Bro you are great
Thank you Smita 🤟 glad to hear this from you. Please do share the videos with your friends too. That's the biggest help and support 😇
Bro you are awesome ❤️
Thank you so much 😀
What computer course(degree)will more scope in future (job)
I guess in future it will not be about the degree or course. It'll be mostly about the skills and the technology which you Excel in ✌️
Ultimately it depends on what interests you have ✌️
@@SimpleSnippets I am 14years old and I am in india,tamilnadu
Oh that's nice to know buddy ✌️ I do have a few friends from Tamil Nadu 😇
it was really helpfull...jazakallah
Thank you so much ma'am. Please share the video with your friends and contacts 😇
ya sure
Thank you so much 😇
Good explanation
+Yuvagangadhar Karini thank you very much 😇✌ do share the videos with your friends and contacts 😇
Great work !
Thanks bro 😊♥️ means a lot to me. Please do share the video with your friends too ✌️
wrong output... At first " addition is" will be printed and then the respected functions will be called ( everything inside function will be printed)
This is spactacular 😍
Thank you so much ma'am 😇✌️
Do share the video with your friends and contacts ✌️
Why your website is not working?
Easily understand....and good English
Thank you so much 😇
sir do u have lec about java?
+Shahid Abbas not yet buddy. It will take time for Java series as I'm working on other videos ✌️
Simply superrrrrrr
Please do share this video with your friends too👍
Greatly job!
Thanks bro ✌️
Please do share the video with your friend too 😊
I did it already!😅
Thank you so much Niraj 😊
What is the scope of
This explanation is good but not complete with "Functions that cannot be overloaded".
Nice man 😘😘
Thank you so much 😀
Tq😘😘
Please do share the videos and channel with your friends too. Thats the biggest help and support you can give back to our channel!
Using namespace std ;
Is used why
to get input and output means to use cout and cin statements if we dont use it we use alternate of it like std::out
What about reference parameter
sir can you please tell how you code so fast🙏🙏
Thanks a lot for such a nice video.You always explain all concepts in very simple language
What is mean by return (a+b) bro
It means add variable a and b and return the result ✌️
Bro can plz cmt me the link of object and class in c++
Sure check this playlist - ruclips.net/p/PLIY8eNdw5tW_o8gsLqNBu8gmScCAqKm2Q
Please make a video of pointers
Please make video on class 12 standard
When it comes to programming, its pretty much the same at every standard. You will find many similar topics 😇
i understood well
Thank you so much Karthik, glad to hear this from you. Please do share the video with your friends and contacts. That will be the best help and support for our channel ✌😇
helpful
+mahamud hasan thank you very much. Do share the video with your friends and contacts 😇✌
Pls can u make a video on c++ i/o operations
I think I have a video on file handling. Check the C++ programming playlist ✌️
Good
Thank you so much 😊
Please do share the videos with your friends and contacts. It'll be very helpful 😇😇
Nice
👍👍👍👍
✌️
Sir submita Arora ka 10 question bta do
NIce!
After 4 years👋😑
I think you're teaching wrong bro because the same function having two different return types cannot be overloaded.it causes ambiguity.pls check it out.
If you see the presentation I have not mentioned anything about return type of the function. The only 3 parameters which can be used for overloading are -
1) Different data type of parameters
2) Different number of parameters
3) Different order/sequence of parameters
This is what I displayed on the presentation screen 😇