Call by Value & Call by Reference in C++ | C++ Tutorials for Beginners #16

  Рет қаралды 851,836

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 548
@ManishSingh-zh8jz
@ManishSingh-zh8jz 3 жыл бұрын
Rohan Das has separate fan base 😍
@ashishkumartiwari9330
@ashishkumartiwari9330 2 жыл бұрын
😂😂
@VK_BRANDING
@VK_BRANDING 9 ай бұрын
Lmfao 😆
@PegasiuuuS
@PegasiuuuS 4 жыл бұрын
13:10 swapping using c++ reference variables
@nibsprogramming7794
@nibsprogramming7794 4 жыл бұрын
Analogy of swap function is really commandable( song copy Bluetooth ,song use in Google drive)
@sailendrachettri8320
@sailendrachettri8320 3 жыл бұрын
Very True :)
@srijanmukherjee3648
@srijanmukherjee3648 3 жыл бұрын
true :)
@fellincode2607
@fellincode2607 3 жыл бұрын
@@sailendrachettri8320 bhai tum emoji thode is type ke lagao👉👉😊😊👈👈
@fellincode2607
@fellincode2607 3 жыл бұрын
@@srijanmukherjee3648 tum bhi bhai emoji is type ke lagao👉👉😊😊👈👈
@sailendrachettri8320
@sailendrachettri8320 3 жыл бұрын
@@fellincode2607 :)
@diptisarkar4849
@diptisarkar4849 3 жыл бұрын
lmaoo the way he said "valueeeeeeee" at 4:33. love the tutorial tho
@harismasoom6634
@harismasoom6634 4 жыл бұрын
Sir this lecture is very conceptual and you tried your best to teach us in a simple way Hats off to you sir
@KartikeyaJain
@KartikeyaJain 4 жыл бұрын
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
@cs29harshazad22 3 жыл бұрын
@@shubhsharma19 jee rank ?
@silverpenetrator739
@silverpenetrator739 3 жыл бұрын
@@shubhsharma19 bruh
@Abhaythakur06x
@Abhaythakur06x 2 жыл бұрын
@@shubhsharma19 😶 is it true ?...
@gulshansingh7961
@gulshansingh7961 2 жыл бұрын
@@shubhsharma19 why do you have to interfere and act cool.....can't you just motivate him instead of making fun of him.....
@satyaanand9243
@satyaanand9243 2 жыл бұрын
yes it has begun i will revise all the concepts before lecture 19
@AshutoshKumar-fu6qe
@AshutoshKumar-fu6qe 3 жыл бұрын
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.
@javacoder8733
@javacoder8733 3 жыл бұрын
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.
@SL-jr9uh
@SL-jr9uh 2 жыл бұрын
This video is a gem if you are having doubts in the concept of pointers
@tejashwinihosur1712
@tejashwinihosur1712 2 жыл бұрын
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.
@noobxgaming3183
@noobxgaming3183 6 ай бұрын
#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
@hardikbatwal1889 5 ай бұрын
Even i got it but i was thinking why he didnt say that ..Many approaches got me confused at the end
@subhamsharrma
@subhamsharrma 4 ай бұрын
Sale chatgpt use kariya hai 😂
@Muhammadzakriya-qy8ex
@Muhammadzakriya-qy8ex 3 ай бұрын
so helpful for me thanks
@PrathmeshPatil-kf5ob
@PrathmeshPatil-kf5ob Ай бұрын
Okay .. That is creative but we also need to get better at understanding pointers and not getting rid of them
@jeetjain2097
@jeetjain2097 3 жыл бұрын
big thanks to you harry sir. bhai c++ ka sabse bada confusion dur kar diya aapne.👍
@priyanshpatidar7466
@priyanshpatidar7466 4 жыл бұрын
elvish bhay ke aage koi bol sakta hai kya??? elviiiiiiis bhaaaaaay
@tejasthombare4501
@tejasthombare4501 3 жыл бұрын
Lovish also😂
@hesily7586
@hesily7586 3 жыл бұрын
I also like to know him..😂
@aman.x
@aman.x 3 жыл бұрын
Gandhi k chacha ka ladka!
@kanishakjain2226
@kanishakjain2226 3 жыл бұрын
Harry bhai ka langotiya yaar.
@Ishanx100
@Ishanx100 3 жыл бұрын
Harry bhai ke chacha hai jo filaal abhi vidhayak mai hai
@parvezsayyed123
@parvezsayyed123 4 жыл бұрын
you really deserve more likes and views
@paraglondhe4361
@paraglondhe4361 2 жыл бұрын
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.
@kunalkumar6783
@kunalkumar6783 2 жыл бұрын
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.
@AasmaniKhazana
@AasmaniKhazana 7 ай бұрын
watched more than 6 times and understodd what sir is trying to teach
@PraveenKumar-ev2lr
@PraveenKumar-ev2lr 3 жыл бұрын
This concept is very much needed in calling functions. Thank you sir for clearing all the concepts.🙏🙏🔥🔥🤘🤘😇😇
@AshutoshKumar-fu6qe
@AshutoshKumar-fu6qe 3 жыл бұрын
17:25 It was some bit hard to understand. But I understood that.
@mohammadmohsinmohammedmohs9717
@mohammadmohsinmohammedmohs9717 4 жыл бұрын
learning C helped me a lot i completed this playlist in 1 week
@P0K0
@P0K0 3 жыл бұрын
Or main 2 din (approx 14 hours) main 😂
@shifuji-7154
@shifuji-7154 3 жыл бұрын
@@P0K0 gajab meko 4 days lage
@anuragtiwari9793
@anuragtiwari9793 3 жыл бұрын
Same in 9 days
@shifuji-7154
@shifuji-7154 3 жыл бұрын
@@anuragtiwari9793 Op bro
@dayanandnimbalkar1706
@dayanandnimbalkar1706 3 жыл бұрын
@@shifuji-7154 am just the beginners so am learning 2 lecture a day.
@YADAV_PRINCE
@YADAV_PRINCE 3 ай бұрын
Call by value - original value change nhi hogi. Address sai kuch lena dena nhi bs value ki copy jati hai . Call by reference - original value bhi change hogi . Kyunki yaha value nahi jati balki uska address jata hai . Ismai usko value sai kuch lena dena nhi hota . Address mai jo value update hoga woh print krdega
@AadityaSPatil
@AadityaSPatil 3 жыл бұрын
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
@mayushi7792 2 жыл бұрын
Aadhe ghante ki vid ke lie almost 1 hour lg gya samjhne me 😂
@yashwalke
@yashwalke 2 жыл бұрын
@@mayushi7792 konsi video ye vaali kya plzz batao.....
@RaushanKumar-ox7ng
@RaushanKumar-ox7ng Жыл бұрын
@@yashwalke 🤣
@pavanmadagani7725
@pavanmadagani7725 Жыл бұрын
VARANASI SARALA IS A VB, THAT'S WHY SHE SAID EVERYBODY WORKS IN COMPUTER SCIENCE.
@AbrarAhmed-cv4ur
@AbrarAhmed-cv4ur Жыл бұрын
10:20 mara demage ki file currupt hoo gi ha 😂😂😂par koe ni dobara dakhna par samjh aa gy.Thanks you
@KunalKumar-yw5wg
@KunalKumar-yw5wg 2 жыл бұрын
@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.
@abhaymishra7991
@abhaymishra7991 2 жыл бұрын
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 .
@dravidvaishnav8521
@dravidvaishnav8521 2 жыл бұрын
point to point explanation with perfect example , covered in minimum time , hats off harry bhai 🔥🔥
@wolfpride9416
@wolfpride9416 3 жыл бұрын
Very easy and clear explanations ... Thanks a ton
@Ayan____212
@Ayan____212 4 жыл бұрын
Thanks for clearing all my doubts and your analogy is amazing
@sameersoni3675
@sameersoni3675 4 жыл бұрын
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
@harshitpal861 4 жыл бұрын
Yeah ..
@tameemsani7387
@tameemsani7387 2 жыл бұрын
yah right...
@8dmusiccreations64
@8dmusiccreations64 3 жыл бұрын
7:50 pe pointer ki jgh upr print kraa do values fir to swap ho hi jaengi
@ankitkumar012
@ankitkumar012 9 ай бұрын
Superb series for c++ .............such a nice explanation
@AbhishekKamble-n3j
@AbhishekKamble-n3j 9 ай бұрын
bro sorry but this lecture is very confusing for me
@freaky_samosa
@freaky_samosa 8 ай бұрын
Same 😢
@naughtyladka
@naughtyladka 8 ай бұрын
Same yaar 2-3 dusre video dekhkar aaya hu fir kuch kuch smj aaya hai 😢
@BakulchandraBhowmik-xv2cr
@BakulchandraBhowmik-xv2cr 7 ай бұрын
You should watch previous videos .
@ashsaha5750
@ashsaha5750 6 ай бұрын
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
@harshsrivastava7261 6 ай бұрын
Everything take time and patience, so go through the process not results
@mianali5664
@mianali5664 4 жыл бұрын
You are doing nice work bro kindly keep it up
@ShivamQmr
@ShivamQmr Жыл бұрын
18:11 sound of realme notification Charge for promotion
@kumkumbhagya51
@kumkumbhagya51 Жыл бұрын
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?
@BlackScreenProductions
@BlackScreenProductions 2 жыл бұрын
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
@ROSHAN-bf5bj
@ROSHAN-bf5bj 3 жыл бұрын
Every time I watch a video from harry i first like and then watch. Obviously every video is awesome.
@shaantyagi2187
@shaantyagi2187 3 жыл бұрын
Thanks bhaiya it is really helping to brush up the skills and learn new things and the snippets part was really unique .
@AditiPanwar-ov8xi
@AditiPanwar-ov8xi 6 ай бұрын
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
@techwithpanwar1507
@techwithpanwar1507 3 жыл бұрын
Legends believe in harry bhai more than the other teacher.
@sahilprasantachoudhury911
@sahilprasantachoudhury911 4 жыл бұрын
Self referential note: this video is important
@amazingcricketshocks1194
@amazingcricketshocks1194 Жыл бұрын
call by reference using refeernce varible 12:00
@robberz9154
@robberz9154 11 ай бұрын
great explanation harry bhai
@aadarshupadhyay761
@aadarshupadhyay761 3 жыл бұрын
Thank u sir for your effort. You videos are the only source for me to lern c++ and java in this lockdown.
@WILDfacts2.0
@WILDfacts2.0 2 жыл бұрын
Have you learn completely from this playlist I don't think this playlist for biegners
@GOJOANDSUKUNAFAN
@GOJOANDSUKUNAFAN 10 ай бұрын
​@@WILDfacts2.0 iam a beginner I'm in like 45th video of this playlist it's absolutely recommended for you
@MAMIR47711
@MAMIR47711 11 ай бұрын
Ge sir your lecture is very interesting and good method of teaching
@manishrohila139
@manishrohila139 3 жыл бұрын
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
@somewhatshreyaa 2 жыл бұрын
yeah
@sauravmandal5
@sauravmandal5 2 жыл бұрын
17:10 I understood but bit tricky , new concept learned here , this was not included in C 15 Hrs tutorial.
@sakibrayeen9966
@sakibrayeen9966 2 жыл бұрын
Bro this concept of pointers and address is really conceptual
@cout_OVERTAKER
@cout_OVERTAKER 2 жыл бұрын
8:45 sir here this will not swap values of x and y (actual parameters) and not a and b That function will swap the value of a and b (formal parameters)
@santoshupadhyay2848
@santoshupadhyay2848 4 жыл бұрын
Sir call by value nahi samjh aaya Can you repeat this topic please sir 🙏🏻
@sweetyagrawal3751
@sweetyagrawal3751 3 жыл бұрын
@@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); }
@sagarbhadre3377
@sagarbhadre3377 Жыл бұрын
#include using namespace std; int sum(int a ,int b); int main(){ int a=4,b=5; cout
@Ninja-cs6mw
@Ninja-cs6mw Жыл бұрын
@code with harry bhaiya aapne kafi difficult way mai bataya is topic ko hum direct bhi toh swap kr skte hian 3rd variable ki heip se like:- // #include // using namespace std; // int main(){ // int a,b,c; // cout
@bladeruneer-w7s
@bladeruneer-w7s Жыл бұрын
isme function use nahi hue.
@iitjee3578
@iitjee3578 Жыл бұрын
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.🙂
@prashantsingh-st6sj
@prashantsingh-st6sj 3 жыл бұрын
thank you so much, Bhai for this kind of teaching
@Tawkir_Choudhury
@Tawkir_Choudhury 2 жыл бұрын
8:30 I learnt the value of using pointers
@NavneetDeshwalJaat
@NavneetDeshwalJaat 2 жыл бұрын
at 8:50 if we dont add (&) with X & Y the code will still work.
@sourabhcodes506
@sourabhcodes506 3 жыл бұрын
kya anology hain bhaiya aapki. maaza aagayg.
@dilipdelwash3192
@dilipdelwash3192 4 жыл бұрын
Great Bro Thanks
@srishti4347
@srishti4347 4 жыл бұрын
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
@deepakchauhn1512 3 жыл бұрын
break the code into steps may be it will help you
@wilsondev1652
@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...
@3DwithHarish
@3DwithHarish 8 ай бұрын
Code runner me ek option hai save before run use enable karne se ye issue nahi aaiga 18:09
@AnEngineerHuman
@AnEngineerHuman 2 жыл бұрын
day-11 Tuttorial-16 done
@satyaanand9243
@satyaanand9243 2 жыл бұрын
hello
@aakashsharma1126
@aakashsharma1126 4 жыл бұрын
Sir.. i follow your channel. Of c++ , please upload.. frequently.. i request you sir
@kidsfun.220
@kidsfun.220 2 жыл бұрын
currect boss... your all the videos useful for me...............
@anushekmauryanit4614
@anushekmauryanit4614 2 жыл бұрын
Bro,one small doubt i request u to pls clear, When u make swapReferenceVar(int &a,int &b) To isme &a ya &b ka data type to integer nahi hai phir bhi ye ek hexadecial type nber ko int data type ke sath kaise accept kar le raha hai.
@shaniyadav33
@shaniyadav33 2 жыл бұрын
5:36 important pointer concept ahead
@AliRaza-h5j5r
@AliRaza-h5j5r Жыл бұрын
int main(){ int x =4, y=5; cout
@Animetyou-pt4wk
@Animetyou-pt4wk Ай бұрын
If you define the values of the variable and you directly swap that values in other function without defining the memory of particular variables then the values of the main function will remain the same as given
@pulkit8133
@pulkit8133 10 ай бұрын
THANK YOU SIR
@jersingh6837
@jersingh6837 Жыл бұрын
Thanks harry bhai for these amazing series!
@vivekbharadwaj009
@vivekbharadwaj009 2 жыл бұрын
Carry's Mohit and Harry's Rohan never revealed 😎😁
@SHIVSAGARKOHAR-z1j
@SHIVSAGARKOHAR-z1j Жыл бұрын
thank you harry bhaiya for explaining clearly
@nafisahmed3607
@nafisahmed3607 3 жыл бұрын
Take Love From Bangladesh Harry Bhai ❤️
@adarshrajput8590
@adarshrajput8590 3 жыл бұрын
Yaar aap kitna badiya samjhate ho
@VisionXUpdates
@VisionXUpdates 4 ай бұрын
the examples given are commendable
@dipakdutta8783
@dipakdutta8783 4 жыл бұрын
Thanks Harish bhaiya
@syeduzairmohiuddin5514
@syeduzairmohiuddin5514 2 жыл бұрын
Thanks
@gagansharma1293
@gagansharma1293 2 жыл бұрын
i think this hardest of all last videos
@MZBLOCK
@MZBLOCK 4 жыл бұрын
Samaj nahi aya par sunkr accha laga
@AbhishekSharma-me
@AbhishekSharma-me 3 жыл бұрын
thankyou bhaiya❤
@reprogramyourbrain2794
@reprogramyourbrain2794 2 жыл бұрын
sir ap ka start ka lectures bohat easily understand ho jata tha mujhar ab understand karna ma problem ho rahi ha
@raimubashirkharal8552
@raimubashirkharal8552 3 жыл бұрын
Great Sir!
@honestad3558
@honestad3558 3 жыл бұрын
your videos are awesome but I can't understand this concept ok now should I move I ll watch this video again after completing course
@nmg4898
@nmg4898 3 жыл бұрын
bhai please use dynamic inputs(like taking inputs from user)
@chiragagrawal6279
@chiragagrawal6279 2 жыл бұрын
Turn on autosave in vs code . That might help in problem with code runner
@paraspandey_
@paraspandey_ Жыл бұрын
8:50 Harry bhaiya agr hum vha x and y ka address na bhi define kre tb bhi hameai values swap ho rahi hai.... Can you clear my doubt!!!
@rajanijaiswal333
@rajanijaiswal333 4 жыл бұрын
thank you bhai
@rajanijaiswal333
@rajanijaiswal333 4 жыл бұрын
I like your video
@ritikabali6466
@ritikabali6466 4 жыл бұрын
very well explained .
@D-Coder440
@D-Coder440 Жыл бұрын
Thank you Harry Bro 😊❣️
@kumkumbhagya51
@kumkumbhagya51 2 жыл бұрын
8:29 bhai c++ mai bhi practice set daal dete to bht maza aata
@abuhuraira5293
@abuhuraira5293 2 жыл бұрын
So it means when we use call by value the swap function will not work and when we use call by reference then the swap function will work. right?
@pscoder7960
@pscoder7960 2 жыл бұрын
Legendary trick about swapPointer()
@Shivam_saxen
@Shivam_saxen 2 жыл бұрын
5:30 - swap ho raha hai , without using pointer #include using namespace std; int sum(int a , int b){ int c = a+b; return c; } int main() { int x=4,y=5; //cout
@l-9techadda321
@l-9techadda321 3 жыл бұрын
Tnq Harry bhaiyea
@fit_tubes_365
@fit_tubes_365 Жыл бұрын
START - ✅17/01/2023 contin. - ✅18/03/2023 #15 Done✅ 23-09-2023 #16 Done✅ 30-09-2023
@63bankardipak38
@63bankardipak38 2 жыл бұрын
Thank you bhaiya - int*a, int &a =x
@ravikantchauhan2106
@ravikantchauhan2106 6 ай бұрын
these two concepts can easily be covered within 10 minutes but but but.... he has a special quality to extend it upto 20 minutes...
@samayrathod7926
@samayrathod7926 3 жыл бұрын
Harry bhai.......iss mai Notes di hoti to maja aa jata....
@techdotmachine
@techdotmachine Жыл бұрын
You are the best Tacher in the Worldbut please bhai unreal engine ka bhi koi course bana dijiye na please sir c++ unreal engine ke liye hi sikh rahan hoon mujhe pata hai usme blueprints bhi hote hai lekin tabbhi seekh rahan hoon kyunki sabse jadaa khatarnak games bana pau.
@freaky_samosa
@freaky_samosa 8 ай бұрын
Tumhen koi game develop karna hain kya?
@codesrhodes3757
@codesrhodes3757 3 жыл бұрын
bhot acha harry bhaiya
@dilrajsingh8086
@dilrajsingh8086 7 ай бұрын
bilkull bhi smjh nhi ayaa thnku so much
Functions & Function Prototypes in C++ | C++ Tutorials for Beginners #15
16:10
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 113 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 58 МЛН
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 198 МЛН
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,4 МЛН
Call By Value & Call By Reference | In Hindi
18:29
codeitup
Рет қаралды 69 М.
For, While and do-while loops in C++ | C++ Tutorials for Beginners #10
20:35
Samay raina Brutally rosted Unacademy || Must watch || Full video
22:20
My First Standup Comedy Vlog ft. @SamayRainaOfficial @KapilSharmaK9
15:24
Rajiv Thakur Comedy
Рет қаралды 1,8 МЛН
Structures, Unions & Enums in C++ | C++ Tutorials for Beginners #14
17:23
Arrays & Pointers Arithmetic in C++ | C++ Tutorials for Beginners #13
22:22
Samay Raina roasted unacademy at its 9th birthday| samay Raina unacademy
22:22
Shweta Bhattacharjee
Рет қаралды 27 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 113 МЛН