Inline Functions & Default Parameters in C++ Programming

  Рет қаралды 110,987

Simple Snippets

Simple Snippets

Күн бұрын

Support Simple Snippets by Donations -
Google Pay UPI ID - tanmaysakpal11@okicici
PayPal - paypal.me/tanmaysakpal11
--------------------------------------------------------------------------------------------- Inline Functions in C++ Programming
Definition : If a function is inline, the compiler places a copy of the code of that function at each point where the function is called at compile time.
Any change to an inline function could require the function to be recompiled because compiler would need to replace all the code once again otherwise it will continue with old functionality.
Syntax:
inline return-type function-name(parameters){
// function code
}
Default Arguments in C++ Programming
A default parameter in c++ programming is a value provided in function declaration that is automatically assigned by the compiler if caller of the function doesn’t provide a value for the argument with default value.
Allows a function to be called without providing one or more trailing arguments.
Syntax:
int sum(int x, int y, int z=0, int w=0)
{
return (x + y + z + w);
}
Inline Functions in C++ Theory Article - simplesnippets...
Functions Part 1 Video link : • Function Overloading i...
Download Dev C++ IDE : sourceforge.ne....
Download C++ Android App : play.google.co...
Simple Snippets Official Website -
simplesnippets...
Simple Snippets on Facebook-
/ simplesnippets
Simple Snippets on Instagram-
/ simplesnipp. .
Simple Snippets Google Plus Page-
plus.google.co...
Simple Snippets email ID-
simplesnippetsinfo@gmail.com
For Classroom Coaching in Mumbai for Programming & other IT/CS Subjects Checkout UpSkill Infotech - upskill.tech/
UpSkill is an Ed-Tech Company / Coaching Centre for Information Technology / Computer Science oriented courses and offer coacing for various Degree courses like BSc.IT, BSc.CS, BCA, MSc.IT, MSc.CS, MCA etc.
Contact via email /call / FB /Whatsapp for more info
email - upskillinfotech@gmail.com
We also Provide Certification courses like -
Android Development
Web Development
Java Developer Course
.NET Developer Course

Пікірлер: 103
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
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 ✌
@jofinjohnson5293
@jofinjohnson5293 6 жыл бұрын
great job brother .. before watching this, no one just explain me in such a simple way....thanks bro ..god bless u
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you so much buddy. I am so happy to hear this from you 😇✌️ Please share the video with your friends too. That will be the best help and support for everyone 🙏
@Pain6944_
@Pain6944_ 4 жыл бұрын
Thing To Remember : If we are defining the default arguments in the function definition instead of the function prototype, then the function must be defined before the function call.
@hackeraxe_tibbers
@hackeraxe_tibbers 4 жыл бұрын
Thank you so much for these videos! It's thanks to you I can study at home. You're very good at what you do with coding and with making tutorials!
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
That's great to know buddy, please do Subscribe to our channel as we have a lot tech educational content which you'll surely like. Also please do share our channel and videos with your friends too, that's the biggest help and support you can provide buddy ✌
@jenilpatel506
@jenilpatel506 5 жыл бұрын
You have great teaching skills. I appreciate it !! :-)
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much Jenil 😊 means a lot to me. It'll be very helpful if you can please share the videos with your friends too ✌️
@srt2926
@srt2926 4 жыл бұрын
My man you made it so simple...Nailed it bruh...Hope u have a good career...All the best
@aakdani11
@aakdani11 3 жыл бұрын
I normally don't comment on videos but you literally made life easier for a lot of new learners. Thanks heaps for putting so much effort to make such videos in series. GOD bless you!!!!
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Glad you like them!
@viveklamba3176
@viveklamba3176 5 жыл бұрын
I am very impressed .Such great teaching skills....very sad only 30K subs.... deserves at least. 500K
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much Vivek 😊 I'm really flattered by your response. I wish we had 500k buddy. Well you can surely help a lot by sharing the channel and videos with your friends bro. That's the biggest help and support ♥️
@abhinav1975
@abhinav1975 5 жыл бұрын
Your teaching skills are on point
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thanks bro 🔥 👍
@saikrishnavadali05
@saikrishnavadali05 4 жыл бұрын
Very Much Helpful Brother. Practical Demonstration is what making us understand better.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Glad it was helpful! Thannk you Sai 😇
@kantimahanthijyothsna2055
@kantimahanthijyothsna2055 4 жыл бұрын
Your channel is ultimate... Ur explanation helps many students thanks alott for your videos
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Heheh I am very glad to hear this. Please do share the channel with your friends and juniors. Thats the biggest help & support 😇
@adityamohan5256
@adityamohan5256 4 жыл бұрын
bruh also there is a rule that default parameters are set from right to left....means int x,int y,int z=0
@chetnagreesan7679
@chetnagreesan7679 5 жыл бұрын
one thing you are missing out in functions is , explaining string functions and i guess c++ has things like local and global variables and also randomize.
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Yup, I have a few topics left out in this entire playlist. Will surely try to cover them up soon 👍
@chetnagreesan7679
@chetnagreesan7679 5 жыл бұрын
@@SimpleSnippets make it early pls...im completely depending on you for my tests...thankyou!!!
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Oh I can't really assure you that since I'm already working on other things ya. I would recommend that you keep searching for the missing topics and not wait 😊✌️
@fionafiona7862
@fionafiona7862 6 жыл бұрын
Thank you I understood Awesome explanation
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
You're welcome. Please do share the video with your friends and contacts ✌
@mohammedmuzammil2767
@mohammedmuzammil2767 2 жыл бұрын
Your classes are just amazing...❣️
@ankitasarangi592
@ankitasarangi592 4 жыл бұрын
thankyou for making things simpler
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Glad you liked it! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@syedimadhaqqi4340
@syedimadhaqqi4340 2 жыл бұрын
Hi, your video tutorials are very informative. Is it possible to have your slides for my notes? Thanks
@mohithvarigonda9516
@mohithvarigonda9516 4 жыл бұрын
very good teaching skills you are best in what you know
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
THank you so much Mohith. I am very glad to know this from you. Yes I like teaching and I can connect very well with students because I consider myself as a student only
@mohithvarigonda9516
@mohithvarigonda9516 4 жыл бұрын
@@SimpleSnippets great gesture
@silvius5562
@silvius5562 6 ай бұрын
really good explanation thank you from italy
@divyapotula7363
@divyapotula7363 4 жыл бұрын
Great explanation 💯💯😅😅I understood very well. I will share with my friends too.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Thank you! 😃
@rituparnamodak7677
@rituparnamodak7677 4 жыл бұрын
VERY GOOD EXPLANAITION .IM LOVING THIS TUTORIAL.
@SimpleSnippets
@SimpleSnippets 4 жыл бұрын
Glad you liked it! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
@rituparnamodak7677
@rituparnamodak7677 4 жыл бұрын
@@SimpleSnippets yes we already shared this video and this video link i got from my freind and you explain very well we all appreciate you.Thank you so much .
@abhayruparel6891
@abhayruparel6891 4 жыл бұрын
Thank you very much for such depth explanation.
@jamesnash9675
@jamesnash9675 2 жыл бұрын
you are the best........masum
@134-reechapulichintha9
@134-reechapulichintha9 3 жыл бұрын
For inline functions also to make the copy of code we need to go to its memory address right? so is there any switching?
@anandchoubey4708
@anandchoubey4708 Жыл бұрын
Amazing bro...❤
@appugirl
@appugirl 2 жыл бұрын
Superb bro❤️
@nai4884
@nai4884 3 жыл бұрын
Thank you, you're good at explaining.
@sridevir5926
@sridevir5926 4 жыл бұрын
Nice explanation so easy to grasp
@saneethvarma7806
@saneethvarma7806 3 жыл бұрын
you are awesome in explanation man.
@SimpleSnippets
@SimpleSnippets 3 жыл бұрын
Thank you so much 😀 It would mean a lot if you could please share our channel and videos with your friends too ✌
@ankurtiwari1207
@ankurtiwari1207 6 жыл бұрын
Thanks for these videos bro but I have a request to make a series on assembly language too and tell how it is used in reverse engineering
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you so much for the positive feedback 😇🙏 really happy to see your support. Regarding assembly language, I'm not really skilled in that domain so videos on that topic might take a while. Maybe in fort I'll collab with some expert for this but currently I myself am tied up with a lot of other work 😇🙏
@ankurtiwari1207
@ankurtiwari1207 6 жыл бұрын
Simple Snippets thanks a lot for videos and for help too😁
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
You're most welcome buddy. Keep up the support 🙏😇
@rahularya7891
@rahularya7891 3 жыл бұрын
Bhai bhut help hua.......💞
@nisharijoy6246
@nisharijoy6246 3 жыл бұрын
How to confirm my function is inlined or not . Because in sometimes compiler won’t treat it as in-line even if add inline commend . Please suggest
@shreyaskumarsharma5908
@shreyaskumarsharma5908 3 жыл бұрын
Does inline function consume more memory than normal functions?
@siszaq2377
@siszaq2377 5 жыл бұрын
Really helpful. Your skills👌👌👌
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much buddy 😇✌️ so glad to hear this compliment. I would request you to please share the video with your friends too 😇✌️
@kunalpatil.24
@kunalpatil.24 3 жыл бұрын
to by default sab functions inline kyu nahi hote? hamesh time bachega na?
@mOOn-xg9nf
@mOOn-xg9nf 6 жыл бұрын
very effective tutorial . plz give tutorial about python progamming
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Hello, Thank you very much for the positive response buddy, Do share the video with your friends and contacts and surely will try to cover Python Programming on this channel soon
@tayyab.sheikh
@tayyab.sheikh Жыл бұрын
Now i understand kay India ka har bacha coder kyuon hai
@thedarkarmy8713
@thedarkarmy8713 5 жыл бұрын
Hey bro ur explanation is amazing!!!
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much buddy. Very glad to hear this from you. Please do share the videos with you friends too 😇
@gurmesadebelaofficialchann9612
@gurmesadebelaofficialchann9612 3 жыл бұрын
Great Job!!!
@anuragchandra7850
@anuragchandra7850 5 жыл бұрын
Great job. But I can't get that link for android
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
It's not functional anymore 😶
@anuragchandra7850
@anuragchandra7850 5 жыл бұрын
@@SimpleSnippets Any way thanks bro
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome my friend 😊
@Gabriel-yk4it
@Gabriel-yk4it 3 жыл бұрын
What happens if u inline a recursive function?
@channelmathomania1745
@channelmathomania1745 6 жыл бұрын
thanks bro can you post videos of scope
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
I think I have a video on this topic. Check my channel playlists where I can fill playlist of C++ programming. If you some get the topic let me know I'll try to make a video on it ✌️😇
@UsmanAli-gb4bn
@UsmanAli-gb4bn 6 жыл бұрын
cant we make prototype in inline functions??
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
I didnt understand your question ?
@fionafiona7862
@fionafiona7862 6 жыл бұрын
Awesome explanation I like it a lot I understood Thank you so much
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
Thank you for your positive response. Glad this video was helpful to you. I also have a new website where I share these tutorials and code. Do check it out too. Link - www.simplesnippets.tech ✌️😇
@luckyjhariya702
@luckyjhariya702 5 жыл бұрын
awesome video
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thanks buddy 😊✌️
@dhanasekar2166
@dhanasekar2166 5 жыл бұрын
Awesome bro
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome 😊
@mbongisenigumede8789
@mbongisenigumede8789 Жыл бұрын
amazing 😁
@SimpleSnippets
@SimpleSnippets Жыл бұрын
Thanks 😄
@luckyjhariya702
@luckyjhariya702 5 жыл бұрын
what is the use of " using namespace std"
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Check this article for better understanding - www.geeksforgeeks.org/namespace-in-c/
@luckyjhariya702
@luckyjhariya702 5 жыл бұрын
@@SimpleSnippets very helpful thankss bhai
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Most welcome buddy 😊✌️ keep up the support ✌️
@GameBoii-s7q
@GameBoii-s7q 10 ай бұрын
awesome!!
@aishwariyakumari9945
@aishwariyakumari9945 5 жыл бұрын
Osaam explanation
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Thank you so much Aishwariya 😁 Please share the video with your friends too 😁😊
@takitachibana7717
@takitachibana7717 4 жыл бұрын
thank you very much
@revathis8428
@revathis8428 6 жыл бұрын
thank u so much
@SimpleSnippets
@SimpleSnippets 6 жыл бұрын
You're welcome buddy. Please do share the video with your friends and contacts too😇✌️
@swado_2000
@swado_2000 5 жыл бұрын
How to get input from user
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Use cin or cout methodology
@swado_2000
@swado_2000 5 жыл бұрын
@@SimpleSnippets if i want dyanamic input so that if integer values are entered function with unteger should run Amd if float values are entered function with float parameters should.is there any way to acheive this
@kryptoid2568
@kryptoid2568 3 жыл бұрын
so basically a macro to masm
@psymapsyma4527
@psymapsyma4527 5 жыл бұрын
+rep Explanation
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Does it mean good explanation or bad? 😅
@psymapsyma4527
@psymapsyma4527 5 жыл бұрын
@@SimpleSnippets its good, one thing. Example 1. // function declaration inline void show(); int main(){ } // function definition inline void show(){ //.... } Example 2. // function declaration inline void show(); int main(){ } // function definition void show(){ //.... } which is correct in these two examples??
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
How about you try it and let me know 😊
@psymapsyma4527
@psymapsyma4527 5 жыл бұрын
@@SimpleSnippets both has no error, but i dont know which is the correct syntax that implies the inline keyword
@SimpleSnippets
@SimpleSnippets 5 жыл бұрын
Well if both are working without errors it means both are right 😉✌️
@Tarsem1336
@Tarsem1336 5 жыл бұрын
watch previous video ....pka diya ye bol bol kar
Function Overloading in C++ Programming
10:02
Simple Snippets
Рет қаралды 175 М.
Functions in C++ Programming | Part - 1
17:03
Simple Snippets
Рет қаралды 286 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 3,8 МЛН
How do Cats Eat Watermelon? 🍉
00:21
One More
Рет қаралды 14 МЛН
Когда отец одевает ребёнка @JaySharon
00:16
История одного вокалиста
Рет қаралды 12 МЛН
Lecture30: Macros, Global Variables, Inline Functions & Default Args
39:23
CodeHelp - by Babbar
Рет қаралды 188 М.
Pass by Value | Pass by Reference | Pass by Address in C++ Programming
19:14
Inline Function In C++
17:45
CppNuts
Рет қаралды 30 М.
C function prototypes 🤖
4:37
Bro Code
Рет қаралды 51 М.
why do void* pointers even exist?
8:17
Low Level
Рет қаралды 370 М.
Inline Functions | Introduction to Programming with C++ | Part 41
6:45
Class Templates in C++ with Program Example | C++ Programmming
8:27
Simple Snippets
Рет қаралды 145 М.
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 3,8 МЛН