Pass by Value | Pass by Reference | Pass by Address in C++ Programming
Vložit
- čas přidán 26. 08. 2024
- Support Simple Snippets by Donations -
Google Pay UPI ID - tanmaysakpal11@okicici
PayPal - paypal.me/tanmaysakpal11
--------------------------------------------------------------------------------------------- In this video tutorial we will understand the 3 different ways in which you can call/pass values to arguments. the 3 different types or ways in which you can pass values as arguments in functions are -
Pass by Value
Pass by Reference
Pass by Address / pointers
Pass by Value -
The call/pass by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function.
In this case, changes made to the parameter inside the function have no effect on the argument.
By default, C++ uses call by value to pass arguments. In general, this means that code within a function cannot alter the arguments used to call the function.
Pass by Reference -
The call/pass by reference method of passing arguments to a function copies the reference of an argument into the formal parameter.
Inside the function, the reference is used to access the actual argument used in the call. This means that changes made to the parameter affect the passed argument.
To pass the value by reference, argument reference is passed to the functions just like any other value.
Pass by Pointer or Call by Address -
The call by pointer method of passing arguments to a function copies the address of an argument into the formal parameter.
Inside the function, the address is used to access the actual argument used in the call. This means that changes made to the parameter affect the passed argument.
To pass the value by pointer, argument pointers are passed to the functions just like any other value.
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
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 content just for you ✌
@Ryker Marcelo give any authentic prove of the website you mentioned. Maybe it is just to make money.
You've explained what all my professors and textbooks could not! You are amazing, when I graduate in a few years, I will pay you back for everything you have done for me, and all of us struggling with the way our universities/colleges have fucked us.
Have you graduated now?
has he paid ? are you goin to pay?
@@kullumanali-bu8uf lol
if it isn't for you...i would have given up on c++.tysm bro...i will help your channel grow.
Wow, this has to be the best comment so far. 🤟😁😊
I'm very very happy to hear this from you buddy. Glad to hear you didn't give up and I could contribute my knowledge😊
Keep sharing the channel and videos ✌️ that'll be the best help and support 😁
I had studied C++ over a year ago and had forgotten a lot till now. Your videos are coming in as super helpful at 2x speed to refresh my concepts! Thanks!
Happy to help!
Best explanation I could find on CZcams! The diagrams made it very clear.
Thanks buddy😊 glad to know this from you✌️
I honestly can't explain how thankful I am because of your videos. I usually read books of C++ at my libary and while I get a deep understanding of the stuff I am reading of, it also takes alot of time and to process through difficult topics, it super time consuming.
Your videos allow me to get that basic idea of the topic I want to learn in some minutes and enable me to just focus on practice, implementing those topics instead of wasting time on learning it first and then implementing it.
Function overloading, operator overloading, stack e.t.c all are very difficult concepts to me when I first read about them. But due to your videos, one by one was conquered. Thank you so much.
please dont stop making videos on c++, imma need u for my 12th
this is the video which is highly recommended before learning Linked List
✌️
The behind the scene explanations made it crystal clear for me as no other videos could explain it with such details. Thanks a ton 🙏
Perfect...Thanks for the part of behind the seen also,it's so powerful!
Thank you so much buddy. Glad you liked this video. Please do share it with your friends too 😇
I really had no idea before watching your videos that programming is so interesting.
Im glad you have developed interest in programming!
If you don't understand the fundamentals of Pointers and References, and the differences between the two, C++ will feel like absolute hell. On the other hand if you grasp the concept of pointers and references, and a bit of dereferencing as well, C++ becomes pretty understandable. Thank you for taking your time to make this video. I appreciate it.
wonderful teaching , I understood it all in one video ( which is ultra rare ) .
This is one of the very few videos on this topic that are correct and accurate. Perfectly explained and well done.
Glad it was helpful! please support Simple Snippets by sharing the channel & videos with your friends too. Thats the biggest help you can provide 😇
yrr apka fan ho gya m
mere pas coding blocks(which is paid) ke bhi lectures h
but vo bhi itna acha nhi samjhate
Thank you bro. I am very happy to hear this from you. Please share this video with your other friends too 😇👍
I've watched a ton of videos on this but couldn't understand. Thanks a trillion for this! May you succeed in all your endeavors!
wow i am really blown away by the quality of your content, thank you so much!
First time I understood pass by address. Thanks a lot.
Glad to hear that
this is the best video ever!!! I am in my second cs course and this concept wasn't clicking until I watched this vid.
I cant express even in my words how I am thankful to you Tanmay bhaiya you literally hits this concept directly into my heart an mind I have seen 5-6 videos of that but not clear pass by value and pass by reference lastly I remembered it procedure but after watching this video I am totally able to visualize the things happened in backened.
brilliant, i was right for relying on youtube and skipping boring classes thanks
Your deep analysing helps us to get a clear idea about the concept .
Love From Bangladesh Brother
Excellent after watching 2,3 videos i got it tysm
i would like to know that when do we use call by address and when call by reference?
Great Sir I definitely recommended this video to everyone
I have been searching this topic...long since.. i found urs.. such a relief to get through such a wondrful vedio❤ty sm
Most welcome anju 😊 I would request you to please share the video with your friends 😊
Bro trust me u r better than professors at iit
I must say, you explain this topic extraordinarily well.
Thank you so much buddy 😁 so happy to hear this ✌️
I try to make it as simple as possible 😊
I would request you to please share this video with your friends too ✌️
29/12/2022 Its been 5 years and the concepts are very crystal clear
Thank you tanmay you are saving my life
Thanks a lot, bhaiya! we need such concept clearing videos on CZcams...
I had difficulty in pass by reference Now I am pretty clear
Thanks man
Thats amazing to know Avishkar. Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
First time i understood about pointers 😍
Awesome brother
U explain very nicely
The idea of behind the scene actually explains us how a program works
Ur even fast while writing code which doesn't bores us to watch ur video without skipping it
Plz make more videos on programming
Plz continue to explain us and help us
Haha thats really nice to know buddy, hope you are liking the videos and gaining knowledge. Please so share the videos with your friends too, thats the biggest help and support 😇
everything was okay. but the value of a and b didn`t change after calling the function too
Thank you bro !!!!!!!!!! i understood each and everything !!!!!!
Simple Snippets>>>>>university professor
Most underrated channel
Words are less to show gratitude...
Have no words
Great channel ❤️
I have already commented on this video. But I want to comment ago. Bro, you are the best.
Hehe thank you so much buddy, this is the first time such thing has happened lol 😅
perfect bruh thank you for saving my life.
thank you so much, i was struggling with these topics from days.
you teach very well and have great communication skill
Thank you buddy. Means a lot 👍🙌
You made learning amazing!
such a good explanation man very niceee very good
Was searching so much for this , and felt good to get the perfect video .
You are brilliant. I finally grab all these teasing concepts since the 1st semester. Thanks a ton.
Most welcome buddy, I am very happy to hear this from you. Please share these videos with your friends too 😇
Ha your the person in javascript tutorial in other channel I Iove it that very useful 👍
Glad to hear that!
Exceptional Explanation❤
brother thank you so so so so so so much for this , i was never able to understand this topic , i shall be forever grateful to you for this
You are GURU 🙇♂️
Bro , you are doing an amazing job by teaching us . I will share your videos with friends. Keep it up.
Thanks a ton. 🙏
Absolutely clear the concept... Thank u boss
Thank You very Much for such a Nice explanation .
The way you have explained is very appreciative.
Glad to hear this from you Sumathi 👍
YOU ARE THE BEST
Thanks so much!! Incredibly useful and is going to help my programming so much in long run! I subbed so keep doing what you do!
Thanks Abhishek! please do share the video and our channel with your friends too. Thats the biggest help and support 😇
Bro ur video is so helpfull i will help u by sharing ur videos and suggesting all friends to watch ur video. This is help from my side.
I think most beginner and intermediate programmers are absolutely confused because Ampersand has kind of a double meaning.
Ampersand i.e. & can be read as Alias of.
Ampersand i.e. & can be read as Address of.
In some cases the above two statements have the same meaning, while dereferencing. But they can also have two distinct meanings as well.
This is the dual nature of Ampersand & in C++ which gets most people.
great behind explanation of what is actually happening
Thank you so much buddy. I am glad to hear this from you. I would request you to please share the video with your friends too 😇
Also I just saw your channel where you have quite a few cool vlogs. Liked the Muscat one ♥ Keep it up buddy :-)
Simple Snippets thanks a lot. ✌🏻
Most welcome 😊🤟
The explanation was very clear and I liked it. Thanks!
Glad it was helpful!
Wow super explanation...I didn't understand of my teacher but yours I got it👌👌
Thank you so much buddy 🙏 means a lot to me and I'm happy that this was helpful to you. Do share it with your friends too, that'll be the best help and support 😊😇✌️
@@SimpleSnippets yaa sure
Thank you very much for the support 🙏
Best explanation ever !!
thank you so much keep it up
Best explainatory lectures thankew so much 🙏
bro you are best... 💜💜💜💜
Thanks bro!
Great explainer👍
Best explaination! Thank you very much!
Loved the digital black board🖤
what a perfect example !!
Thanks buddy! Please share the videos with your friends if you want to genuinely support me & our channel!✌😇
Thanks so much. The best explanation on the topic by far. Greatly appreciated.
Most welcome buddy, glad to hear this from you. Please do share the videos with your friends too & definitely subscribe to our channel. Thats the biggest help and support you can provide ✌😇
They are super cool bro.Thank you
+Nash Hash thank you so much buddy for such a wonderful and positive response. Glad to hear you liked the videos. Do share the videos with your friends and contacts ✌️
I'll share your response on our Instagram page in the stories. Do follow it also!
instagram.com/simplesnippets
Awesome explanation bro
Thank you soo much
This is the best tutorial, thanks.
🤝 brilliant man , you always explain clearly with all means better than lecturers
Amazing explanation bruhh , thanks a ton !!
Thank You very much bro your videos are really helpful and your way of explaning the things is really excellent KEEP ROCKINGG....
Thank you very much,very well explained
Thank you, God bless you. I got it totally
Wonderful!
Wow, sir you are very good at teaching c++.
Thank you so much Monika 😇 happy to hear this from you ✌️
Great video! I understood mostly everything. I only had a doubt in the last part.Can you just explain what are POINTERS exactly?
I have separate video on pointers in C++ playlist
ty so much bro i was so frustrated. u made the topic so clear!!!!!!!!1
That's great to know Srikanth, 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 ✌
HOLY SHIT GOD TUTORIAL
pass by address is very well picturised.... well done!! :)
Thanks a lot Monika, glad to hear this from you.😊 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Bro your way of teaching is osm coz your spoken eng is osm😄😄
Thank you so much Pardeep 😇✌️ really happy to hear this from you bro 😊
I would request you to please share the video with your friends and contacts too 😇 that will be the best help ✌️
Bro your videos just made me clear my Technical round. Thank you so much ♥️
Thank you so much Utkarsh, I'm so glad to hear such a wonderful news from you ❤️ all the best buddy. Very happy for you 😇
Simple Snippets Thank u bro. Doing my best here 😀
Greatly explained
Glad you think so!
Thank you bro for the tutorials... They are awesome
+Shivansh Gahlaut You're welcome buddy. Happy to hear your positive response. Do share the videos with your friends and contacts and keep sharing the knowledge and I'm really glad these videos helped you. ✌️
Very clear instructions
Thank you so much buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Excellent explanation with the background visual!!
Thank you
Glad it helped! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Simple Snippets I’ll make sure to do that :)
Short and precise❤️
U r really doing a great job man
Loved the way u explaining 💯
Tqs for this
Thank you so much ya 😊 means a lot ✌️
You are the best C++ tutorial....er XD
Hehe thank you so much buddy. This really means a lot to me. And yes I've pretty much covered a lot of basic concepts in this entire playlist so I think you're 12th std syllabus will be pretty much covered. Do let me know if I've missed out on any topic and then I'll surely make a video on it later 😇✌️
OMG this is the best explanation given! you have my sub and like :D
Awesome, thank you!
Thank you so much for clear explanation
Glad it was helpful! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇
Thank you so much. So so much. Liked and subbed
Welcome to the Simple Snippets family buddy 😊
pointer explained well 😊 ty
Thanks Radhika 😊 super happy to hear this from you ✌️
I would request you to please share the video with your friends too 😊
Would suggest as the best video to learn pointer concept..
Wow that'll be amazing Radhika 😊✌️
Thank you for your support 😊
Excellent teaching
Hey that was a great video there... Really helped me grasp the concepts! Thank you so much!
Most welcome Shriram 😊 glad to hear such wonderful feedback from you. I have one request, please share the video with your friends as well. It'll be very helpful ✌️😊
Very nicely explained😊👍👍
amazing teacher
We call this video the actual value of time = worth it..
Suggested my frnds..
thanks buddy, means a lot!
Are bhai you replied i appreciate your work.. ♥️ very very nice👑
Glad to hear this from you bhai ✌️ please do support me by sharing our channel and videos with your friends😊
@@SimpleSnippets already did ♥️ you are like my online mentor i love the way you teach
*X and *Y store the value within the address in this that would be 5 and 6 respectively and X and Y would store the address of the variables in this it would be 010 and 100 right ? cause in video its other way round
Subbed! These videos are really well done. Thank you for your time .
Thank you so much for such wonderful feedback 😊
Means a lot ✌️
Very Much thanks!
Thanks buddy, glad to hear this from you. Please do share the videos with your friends too & definitely subscribe to our channel. Thats the biggest help and support you can provide ✌😇