Call by Value & Call by Reference in C++ | C++ Tutorials for Beginners #16
Download the best IDE for C, C# and C++: bit.ly/WholeTomato-CWH
►Source Code & Resources: codewithharry.com/videos/cpp-...
►This video is a part of my C++ playlist: • C++ Tutorials In Hindi
►For Doubt Solving, Brain Storming Sessions & guaranteed replies, join the channel membership here: / @codewithharry
►Click here to subscribe - / @codewithharry
►Checkout my English channel here: / programmingwithharry
Best Hindi Videos For Learning Programming:
►Learn Python In One Video - • Python Tutorial In Hin...
►Python Complete Course In Hindi - • Python Tutorials For A...
►C Language Complete Course In Hindi -
• C Language Tutorials I...
►JavaScript Complete Course In Hindi -
• JavaScript Tutorials I...
►Learn JavaScript in One Video - • JavaScript Tutorial
►Learn PHP In One Video - • Learn Php In One Video...
►Django Complete Course In Hindi -
• Python Django Tutorial...
►Machine Learning Using Python - • Machine Learning Tutor...
►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
►Advanced Python Tutorials - • Intermediate/Advanced ...
►Object Oriented Programming In Python - • Object Oriented Progra...
►Python Data Science and Big Data Tutorials - • Python Data Science an...
Follow Me On Social Media
►Website (created using Flask) - www.codewithharry.com
►Facebook - / codewithharry
►Instagram - / codewithharry
►Personal Facebook A/c - / geekyharis
Twitter - / haris_is_here
Пікірлер: 524
Analogy of swap function is really commandable( song copy Bluetooth ,song use in Google drive)
@sailendrachettri8320
3 жыл бұрын
Very True :)
@srijanmukherjee3648
3 жыл бұрын
true :)
@fellincode2607
2 жыл бұрын
@@sailendrachettri8320 bhai tum emoji thode is type ke lagao👉👉😊😊👈👈
@fellincode2607
2 жыл бұрын
@@srijanmukherjee3648 tum bhi bhai emoji is type ke lagao👉👉😊😊👈👈
@sailendrachettri8320
2 жыл бұрын
@@fellincode2607 :)
Rohan Das has separate fan base 😍
@ashishkumartiwari9330
Жыл бұрын
😂😂
@VK_BRANDING
4 ай бұрын
Lmfao 😆
#include using namespace std; void swap(int &x, int &y) { int tem=x; x=y; y=tem; } int main(){ int a=5; int b=7; cout
@hardikbatwal1889
12 күн бұрын
Even i got it but i was thinking why he didnt say that ..Many approaches got me confused at the end
@subhamsharrma
3 күн бұрын
Sale chatgpt use kariya hai 😂
lmaoo the way he said "valueeeeeeee" at 4:33. love the tutorial tho
Bro now i feel the actual tough part of coding has begun....i start to feel the difficulty now...guess i will revise all the previous lectures before watching the next one
@cs29harshazad22
2 жыл бұрын
@@shubhsharma19 jee rank ?
@silverpenetrator739
2 жыл бұрын
@@shubhsharma19 bruh
@Abhaythakur06x
2 жыл бұрын
@@shubhsharma19 😶 is it true ?...
@gulshansingh7961
Жыл бұрын
@@shubhsharma19 why do you have to interfere and act cool.....can't you just motivate him instead of making fun of him.....
@satyaanand9243
Жыл бұрын
yes it has begun i will revise all the concepts before lecture 19
Sir this lecture is very conceptual and you tried your best to teach us in a simple way Hats off to you sir
13:10 swapping using c++ reference variables
You explained this concept with a superb analogy that any one wouldn't end up finishing this video having doubts in his/her mind regarding pass by value and pass by reference.
This concept is very much needed in calling functions. Thank you sir for clearing all the concepts.🙏🙏🔥🔥🤘🤘😇😇
It's not the error of the code runner. It is actually a feature to run selected code by the cursor. It may be helpful in python.
watched more than 6 times and understodd what sir is trying to teach
Aapke classes dekhne ko maza ata hai bhai.enjoy with learning..😍🤗comedy + teaching...😁fun learning..kabhi bore nahi hota hai ..Thank you so much bhayya.
Thank you so much bhaiya for clearing every topic in very concise way. And, i know as simple you are teaching in video is not as simple behind the video, so, i also appreciating your hard work in making such incredible videos. A lot of thanks and best wishes for you Bhaiya.
Thanks for clearing all my doubts and your analogy is amazing
This video is a gem if you are having doubts in the concept of pointers
bro sorry but this lecture is very confusing for me
@samosa316
4 ай бұрын
Same 😢
@naughtyladka
3 ай бұрын
Same yaar 2-3 dusre video dekhkar aaya hu fir kuch kuch smj aaya hai 😢
@BakulchandraBhowmik-xv2cr
2 ай бұрын
You should watch previous videos .
@ashsaha5750
2 ай бұрын
Don't worry it will take little time...on my request if you could please watch Call by Value vs Call by Reference in C programming by Harry Bhaiya, it may help you...there the topic is illustrated beautifully...
@harshsrivastava7261
2 ай бұрын
Everything take time and patience, so go through the process not results
you really deserve more likes and views
I loved the logic we used in this topic, it was probably the most complex one yet. Thank you Harry bhai for explaining it in such detail ♥
@mayushi7792
Жыл бұрын
Aadhe ghante ki vid ke lie almost 1 hour lg gya samjhne me 😂
@yashwalke
Жыл бұрын
@@mayushi7792 konsi video ye vaali kya plzz batao.....
@RaushanKumar-ox7ng
Жыл бұрын
@@yashwalke 🤣
@pavanmadagani7725
Жыл бұрын
VARANASI SARALA IS A VB, THAT'S WHY SHE SAID EVERYBODY WORKS IN COMPUTER SCIENCE.
big thanks to you harry sir. bhai c++ ka sabse bada confusion dur kar diya aapne.👍
these two concepts can easily be covered within 10 minutes but but but.... he has a special quality to extend it upto 20 minutes...
Sir call by value nahi samjh aaya Can you repeat this topic please sir 🙏🏻
@sweetyagrawal3751
2 жыл бұрын
@@bhavyanavyadancechannel8276 oh so call by value is jus using the part that does't worked while swapping is that call by value? void swap(int a,int b) .. int main(){ swap(x,y); }
Very easy and clear explanations ... Thanks a ton
point to point explanation with perfect example , covered in minimum time , hats off harry bhai 🔥🔥
@CodeWithHarry thanks for your nice videos on c++ imprtant to mention that swap() itself is a keyword to swap two numbers in c++; it swaps two number without even creating a function.
18:10 , rough.cpp . I really wanted to see what's inside rough.cpp at the beggininh of video. Harry bhai ne meri man ki baat sun li. I will call you "Guruji" from next time. Thank you so much for doing all this for us.
thank you so much, Bhai for this kind of teaching
If any thing selected on vs code and if we run program then it will make tempcode file and show error . So be careful before compiling .
17:25 It was some bit hard to understand. But I understood that.
Every time I watch a video from harry i first like and then watch. Obviously every video is awesome.
Self referential note: this video is important
Legends believe in harry bhai more than the other teacher.
Thanks bhaiya it is really helping to brush up the skills and learn new things and the snippets part was really unique .
Thanks Harish bhaiya
thank you , much appreciated
Great Bro Thanks
You are doing nice work bro kindly keep it up
very well explained .
Thanks harry bhai for these amazing series!
Superb series for c++ .............such a nice explanation
thank you harry bhaiya for explaining clearly
Thanks sir.
great explanation harry bhai
Call by Value // i.e, the very first function in this video --> int sum(int a, int b) Changes made to the formal parameter inside the function have no effect on the actual parameter, Call by Value is used by default.
@harshitpal861
3 жыл бұрын
Yeah ..
@tameemsani7387
2 жыл бұрын
yah right...
Thank you bhaiya ❤️
11:19 so in short swap function se bas copy jaa rha hai isliye vaha to change ho jayega par main waale function mai values ka kuch change nhi hoga kyuki vo original hai lekin pointer waale se hum uska address le rhe hai to vaha jo change hoga uske address ki madad se yaha bhi changes ho jayenge Am i right?
Bro this concept of pointers and address is really conceptual
Great Sir!
learning C helped me a lot i completed this playlist in 1 week
@P0K0
3 жыл бұрын
Or main 2 din (approx 14 hours) main 😂
@shifuji-7154
3 жыл бұрын
@@P0K0 gajab meko 4 days lage
@anuragtiwari9793
3 жыл бұрын
Same in 9 days
@shifuji-7154
3 жыл бұрын
@@anuragtiwari9793 Op bro
@dayanandnimbalkar1706
3 жыл бұрын
@@shifuji-7154 am just the beginners so am learning 2 lecture a day.
Write a C ++ Program. We have a day-to-day record of USD price in PKR for last 100 weeks. Find the week, which has a highest variation in PKR, while a base price is 160Rs = 1 USD. Also, find which week has the highest average USDprice Sir Please Solve The Problem
Awesome..
7:50 pe pointer ki jgh upr print kraa do values fir to swap ho hi jaengi
THANK YOU SIR
kya anology hain bhaiya aapki. maaza aagayg.
Thank you.
harry bhaiya ... we can swap the variable using this also .... int main(){ int a,b,x; cin>>a>>b; x=a; a=b; b=x; cout
nice bro good explaination
woow ! fanstastic sir🤩😍
Thanks Harry Bhaiya
Thank you sir
Thank you Harry Bro 😊❣️
Harry sir, code likh ke har baar dry run krke dikhao.
bhot acha harry bhaiya
Thank u sir for your effort. You videos are the only source for me to lern c++ and java in this lockdown.
@WILDfacts2.0
2 жыл бұрын
Have you learn completely from this playlist I don't think this playlist for biegners
@GOJOANDSUKUNAFAN
5 ай бұрын
@@WILDfacts2.0 iam a beginner I'm in like 45th video of this playlist it's absolutely recommended for you
Yaar aap kitna badiya samjhate ho
10:20 mara demage ki file currupt hoo gi ha 😂😂😂par koe ni dobara dakhna par samjh aa gy.Thanks you
Tnq Harry bhaiyea
Thank you soo much brother
thank you bhai
@rajanijaiswal333
4 жыл бұрын
I like your video
Samaj nahi aya par sunkr accha laga
You are the best
the playlist is really so helpful👏👏, the concept is little bit hard but I would suggest you .... just go through the video twice and read the source code...you will surely understand the concept
thanks sir
good bro great
I'm really not able to understand this concept. Sir your videos are very informative and help a lot. But I'm not able to grasp this concept. Is there anyone who can please help.
@deepakchauhn1512
3 жыл бұрын
break the code into steps may be it will help you
@wilsondev1652
3 жыл бұрын
The first thing that he taught that value is not changed is basically the call by value...by which we can't change the actual value ...but then he taught 2 methods of changing it ...and we can change and that change of values of actual parameters by those 2 methods are basically the call by reference topic...
Great
Ge sir your lecture is very interesting and good method of teaching
Thank you sir.
currect boss... your all the videos useful for me...............
ty16😀 altho bhaiya, still i'm a lil bit confused in this topic cuz i'm learning it for the 1st time. still thnks bhaiya i hope with time i'll get used to it.🙂
thanku so much sir .
harry bhai !! a, b dono pointer datatype k variables hai tw vo memory me space occupy nhi krenge kya ??
Brilliant Sir
void swap(int* a ,int* b){ int* temp=a; a=b; b=temp; } int main(){ int a=3,b=4; swap(a,b); cout
thankyou bhaiya❤
Keep growing sir😇😇🙏🙏
Take Love From Bangladesh Harry Bhai ❤️
Thanks sir 🙏🏻🙏🏻
Was hard to understand but managed to understand it perfectly by the end of the day😃🥲👍
@GOJOANDSUKUNAFAN
5 ай бұрын
Damm i understood in a Hour no cap 🙂🤞
Sir apka video mey sob kuch thik hay, but ek problem hay- sob kuch ek sath dekha raha hey, to beginners der thora problem aa raha hay..
sir if you check source code & resources , you will find that in code snippet 2 result image is wrong as your data mention above result. please check you are brilliant teacher
@somewhatshreyaa
2 жыл бұрын
yeah
Carry's Mohit and Harry's Rohan never revealed 😎😁
i think this hardest of all last videos
bhai please use dynamic inputs(like taking inputs from user)
Nice 👍
thanks harry bro
confusion toh create ho gyi sir ji
thankyou harrybhiaya
great😍
Sir.. i follow your channel. Of c++ , please upload.. frequently.. i request you sir
harry bro...smjh nhi aya what should i do....i am new to coding.