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

  Рет қаралды 834,267

CodeWithHarry

CodeWithHarry

Күн бұрын

Пікірлер: 541
@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 :)
@ManishSingh-zh8jz
@ManishSingh-zh8jz 3 жыл бұрын
Rohan Das has separate fan base 😍
@ashishkumartiwari9330
@ashishkumartiwari9330 2 жыл бұрын
😂😂
@VK_BRANDING
@VK_BRANDING 8 ай бұрын
Lmfao 😆
@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.
@harismasoom6634
@harismasoom6634 3 жыл бұрын
Sir this lecture is very conceptual and you tried your best to teach us in a simple way Hats off to you sir
@PegasiuuuS
@PegasiuuuS 4 жыл бұрын
13:10 swapping using c++ reference variables
@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 5 ай бұрын
#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 3 ай бұрын
Even i got it but i was thinking why he didnt say that ..Many approaches got me confused at the end
@subhamsharrma
@subhamsharrma 3 ай бұрын
Sale chatgpt use kariya hai 😂
@Muhammadzakriya-qy8ex
@Muhammadzakriya-qy8ex 2 ай бұрын
so helpful for me thanks
@PraveenKumar-ev2lr
@PraveenKumar-ev2lr 3 жыл бұрын
This concept is very much needed in calling functions. Thank you sir for clearing all the concepts.🙏🙏🔥🔥🤘🤘😇😇
@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 Жыл бұрын
yes it has begun i will revise all the concepts before lecture 19
@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.
@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.
@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.
@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.
@SL-jr9uh
@SL-jr9uh 2 жыл бұрын
This video is a gem if you are having doubts in the concept of pointers
@jeetjain2097
@jeetjain2097 3 жыл бұрын
big thanks to you harry sir. bhai c++ ka sabse bada confusion dur kar diya aapne.👍
@AasmaniKhazana
@AasmaniKhazana 5 ай бұрын
watched more than 6 times and understodd what sir is trying to teach
@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 Жыл бұрын
@@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.
@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...
@YADAV_PRINCE
@YADAV_PRINCE 2 ай бұрын
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
@AbhishekKamble-n3j
@AbhishekKamble-n3j 7 ай бұрын
bro sorry but this lecture is very confusing for me
@freaky_samosa
@freaky_samosa 7 ай бұрын
Same 😢
@naughtyladka
@naughtyladka 7 ай бұрын
Same yaar 2-3 dusre video dekhkar aaya hu fir kuch kuch smj aaya hai 😢
@BakulchandraBhowmik-xv2cr
@BakulchandraBhowmik-xv2cr 5 ай бұрын
You should watch previous videos .
@ashsaha5750
@ashsaha5750 5 ай бұрын
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 5 ай бұрын
Everything take time and patience, so go through the process not results
@parvezsayyed123
@parvezsayyed123 4 жыл бұрын
you really deserve more likes and views
@AditiPanwar-ov8xi
@AditiPanwar-ov8xi 4 ай бұрын
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
@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 🔥🔥
@diptisarkar4849
@diptisarkar4849 3 жыл бұрын
lmaoo the way he said "valueeeeeeee" at 4:33. love the tutorial tho
@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
@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 .
@AshutoshKumar-fu6qe
@AshutoshKumar-fu6qe 3 жыл бұрын
17:25 It was some bit hard to understand. But I understood that.
@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.
@ankitkumar012
@ankitkumar012 8 ай бұрын
Superb series for c++ .............such a nice explanation
@ROSHAN-bf5bj
@ROSHAN-bf5bj 3 жыл бұрын
Every time I watch a video from harry i first like and then watch. Obviously every video is awesome.
@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
@pulkit8133
@pulkit8133 9 ай бұрын
THANK YOU SIR
@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
@8dmusiccreations64
@8dmusiccreations64 3 жыл бұрын
7:50 pe pointer ki jgh upr print kraa do values fir to swap ho hi jaengi
@MAMIR47711
@MAMIR47711 9 ай бұрын
Ge sir your lecture is very interesting and good method of teaching
@AnEngineerHuman
@AnEngineerHuman Жыл бұрын
day-11 Tuttorial-16 done
@satyaanand9243
@satyaanand9243 Жыл бұрын
hello
@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?
@096harshitgupta6
@096harshitgupta6 3 жыл бұрын
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
@syeduzairmohiuddin5514
@syeduzairmohiuddin5514 2 жыл бұрын
Thanks
@adarshrajput8590
@adarshrajput8590 3 жыл бұрын
Yaar aap kitna badiya samjhate ho
@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.
@AliRaza-h5j5r
@AliRaza-h5j5r Жыл бұрын
int main(){ int x =4, y=5; cout
@VisionXUpdates
@VisionXUpdates 3 ай бұрын
the examples given are commendable
@techwithpanwar1507
@techwithpanwar1507 3 жыл бұрын
Legends believe in harry bhai more than the other teacher.
@sourabhcodes506
@sourabhcodes506 2 жыл бұрын
kya anology hain bhaiya aapki. maaza aagayg.
@robberz9154
@robberz9154 10 ай бұрын
great explanation harry bhai
@dipakdutta8783
@dipakdutta8783 4 жыл бұрын
Thanks Harish bhaiya
@sagarbhadre3377
@sagarbhadre3377 Жыл бұрын
#include using namespace std; int sum(int a ,int b); int main(){ int a=4,b=5; cout
@kidsfun.220
@kidsfun.220 2 жыл бұрын
currect boss... your all the videos useful for me...............
@sakibrayeen9966
@sakibrayeen9966 2 жыл бұрын
Bro this concept of pointers and address is really conceptual
@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.
@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.🙂
@63bankardipak38
@63bankardipak38 2 жыл бұрын
Thank you bhaiya - int*a, int &a =x
@Ayan____212
@Ayan____212 4 жыл бұрын
Thanks for clearing all my doubts and your analogy is amazing
@reprogramyourbrain2794
@reprogramyourbrain2794 2 жыл бұрын
sir ap ka start ka lectures bohat easily understand ho jata tha mujhar ab understand karna ma problem ho rahi ha
@cout_OVERTAKER
@cout_OVERTAKER Жыл бұрын
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)
@SantOshS7
@SantOshS7 4 жыл бұрын
I got confused... i studied and understood different than in this video.....And sound is also not clear.. Please make another video for this topic. BTW you are awesome..Your teaching technique is very good. @codewithharry please make another video in this topic.
@rajanijaiswal333
@rajanijaiswal333 4 жыл бұрын
thank you bhai
@rajanijaiswal333
@rajanijaiswal333 4 жыл бұрын
I like your video
@dilipdelwash3192
@dilipdelwash3192 4 жыл бұрын
Great Bro Thanks
@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?
@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); }
@AbhishekSharma-me
@AbhishekSharma-me 3 жыл бұрын
thankyou bhaiya❤
@raimubashirkharal8552
@raimubashirkharal8552 3 жыл бұрын
Great Sir!
@wolfpride9416
@wolfpride9416 3 жыл бұрын
Very easy and clear explanations ... Thanks a ton
@nafisahmed3607
@nafisahmed3607 3 жыл бұрын
Take Love From Bangladesh Harry Bhai ❤️
@tanayraj2991
@tanayraj2991 4 жыл бұрын
You are the best
@amazingcricketshocks1194
@amazingcricketshocks1194 Жыл бұрын
call by reference using refeernce varible 12:00
@SHIVSAGARKOHAR-z1j
@SHIVSAGARKOHAR-z1j Жыл бұрын
thank you harry bhaiya for explaining clearly
@gagansharma1293
@gagansharma1293 2 жыл бұрын
i think this hardest of all last videos
@l-9techadda321
@l-9techadda321 3 жыл бұрын
Tnq Harry bhaiyea
@sahilprasantachoudhury911
@sahilprasantachoudhury911 3 жыл бұрын
Self referential note: this video is important
@Alizain_yt_expert
@Alizain_yt_expert Ай бұрын
string a= "kuch samgh nhi aya"; for(int i=1; i
@pscoder7960
@pscoder7960 2 жыл бұрын
Legendary trick about swapPointer()
@iSubhoo
@iSubhoo 3 жыл бұрын
Thank you.
@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
@sauravmandal5
@sauravmandal5 2 жыл бұрын
17:10 I understood but bit tricky , new concept learned here , this was not included in C 15 Hrs tutorial.
@chiragagrawal6279
@chiragagrawal6279 2 жыл бұрын
Turn on autosave in vs code . That might help in problem with code runner
@codesrhodes3757
@codesrhodes3757 3 жыл бұрын
bhot acha harry bhaiya
@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 8 ай бұрын
​@@WILDfacts2.0 iam a beginner I'm in like 45th video of this playlist it's absolutely recommended for you
@jersingh6837
@jersingh6837 Жыл бұрын
Thanks harry bhai for these amazing series!
@طلحہمغل-ل3ف
@طلحہمغل-ل3ف 3 жыл бұрын
kya ham function ma aik sa zayada value return kr sakta han?? agr kar sakta han to voh kaisa ho ga ur os ka syntax kya ho ga ....please explain....shukriya
@mianali5664
@mianali5664 4 жыл бұрын
You are doing nice work bro kindly keep it up
@waiztech
@waiztech 3 ай бұрын
Watch this video twice or thrice then you will surely understand it!!
@itsaryanb9316
@itsaryanb9316 3 жыл бұрын
Was hard to understand but managed to understand it perfectly by the end of the day😃🥲👍
@GOJOANDSUKUNAFAN
@GOJOANDSUKUNAFAN 8 ай бұрын
Damm i understood in a Hour no cap 🙂🤞
@D-Coder440
@D-Coder440 Жыл бұрын
Thank you Harry Bro 😊❣️
@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
@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.
@prashantsingh-st6sj
@prashantsingh-st6sj 3 жыл бұрын
thank you so much, Bhai for this kind of teaching
@3DwithHarish
@3DwithHarish 7 ай бұрын
Code runner me ek option hai save before run use enable karne se ye issue nahi aaiga 18:09
@23ds872
@23ds872 Жыл бұрын
Swap without 3rd variable b=a+b; a=b-a; b=b-a;
@aakashsharma1126
@aakashsharma1126 4 жыл бұрын
Sir.. i follow your channel. Of c++ , please upload.. frequently.. i request you sir
@dilrajsingh8086
@dilrajsingh8086 6 ай бұрын
bilkull bhi smjh nhi ayaa thnku so much
@AjinkyaAJJadhav
@AjinkyaAJJadhav Жыл бұрын
Harry sir, code likh ke har baar dry run krke dikhao.
@MZBLOCK
@MZBLOCK 4 жыл бұрын
Samaj nahi aya par sunkr accha laga
@nmg4898
@nmg4898 3 жыл бұрын
bhai please use dynamic inputs(like taking inputs from user)
@rashibaranwal5494
@rashibaranwal5494 2 жыл бұрын
auto save on karlo bug chala jayega and terminal me run ho jayega aaram se
@engineerbhai7642
@engineerbhai7642 4 жыл бұрын
Thanks sir.
@itm23animapriyadarsini35
@itm23animapriyadarsini35 2 жыл бұрын
Thank you soo much brother
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН
ТЫ В ДЕТСТВЕ КОГДА ВЫПАЛ ЗУБ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 3 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 138 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 23 МЛН
Call By Value & Call By Reference in C
8:34
Neso Academy
Рет қаралды 1,3 МЛН
Structures, Unions & Enums in C++ | C++ Tutorials for Beginners #14
17:23
Call By Address and Reference | C++ Programming
10:41
Learn Coding
Рет қаралды 42 М.
Arrays & Pointers Arithmetic in C++ | C++ Tutorials for Beginners #13
22:22
Call By Value & Call By Reference | In Hindi
18:29
codeitup
Рет қаралды 65 М.
Call by Value & Call by Reference in C++  | C++ Placement Course | Lecture 65
27:57
Try Not To Laugh 😅 the Best of BoxtoxTv 👌
00:18
boxtoxtv
Рет қаралды 7 МЛН