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

  • @nibsprogramming7794
    @nibsprogramming77943 жыл бұрын

    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

    2 жыл бұрын

    @@sailendrachettri8320 bhai tum emoji thode is type ke lagao👉👉😊😊👈👈

  • @fellincode2607

    @fellincode2607

    2 жыл бұрын

    @@srijanmukherjee3648 tum bhi bhai emoji is type ke lagao👉👉😊😊👈👈

  • @sailendrachettri8320

    @sailendrachettri8320

    2 жыл бұрын

    @@fellincode2607 :)

  • @ManishSingh-zh8jz
    @ManishSingh-zh8jz3 жыл бұрын

    Rohan Das has separate fan base 😍

  • @ashishkumartiwari9330

    @ashishkumartiwari9330

    Жыл бұрын

    😂😂

  • @VK_BRANDING

    @VK_BRANDING

    4 ай бұрын

    Lmfao 😆

  • @noobxgaming3183
    @noobxgaming3183Ай бұрын

    #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

    12 күн бұрын

    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 😂

  • @diptisarkar4849
    @diptisarkar48493 жыл бұрын

    lmaoo the way he said "valueeeeeeee" at 4:33. love the tutorial tho

  • @KartikeyaJain
    @KartikeyaJain3 жыл бұрын

    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

    2 жыл бұрын

    @@shubhsharma19 jee rank ?

  • @silverpenetrator739

    @silverpenetrator739

    2 жыл бұрын

    @@shubhsharma19 bruh

  • @Abhaythakur06x

    @Abhaythakur06x

    2 жыл бұрын

    @@shubhsharma19 😶 is it true ?...

  • @gulshansingh7961

    @gulshansingh7961

    Жыл бұрын

    @@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

  • @harismasoom6634
    @harismasoom66343 жыл бұрын

    Sir this lecture is very conceptual and you tried your best to teach us in a simple way Hats off to you sir

  • @prathameshyadav2001
    @prathameshyadav20013 жыл бұрын

    13:10 swapping using c++ reference variables

  • @javacoder8733
    @javacoder87332 жыл бұрын

    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.

  • @PraveenKumar-ev2lr
    @PraveenKumar-ev2lr2 жыл бұрын

    This concept is very much needed in calling functions. Thank you sir for clearing all the concepts.🙏🙏🔥🔥🤘🤘😇😇

  • @paraglondhe4361
    @paraglondhe43612 жыл бұрын

    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.

  • @AasmaniKhazana
    @AasmaniKhazana2 ай бұрын

    watched more than 6 times and understodd what sir is trying to teach

  • @tejashwinihosur1712
    @tejashwinihosur1712 Жыл бұрын

    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.

  • @kunalkumar6783
    @kunalkumar67832 жыл бұрын

    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.

  • @Ayan____212
    @Ayan____2123 жыл бұрын

    Thanks for clearing all my doubts and your analogy is amazing

  • @SL-jr9uh
    @SL-jr9uh2 жыл бұрын

    This video is a gem if you are having doubts in the concept of pointers

  • @user-cs1hg8xp6s
    @user-cs1hg8xp6s4 ай бұрын

    bro sorry but this lecture is very confusing for me

  • @samosa316

    @samosa316

    4 ай бұрын

    Same 😢

  • @naughtyladka

    @naughtyladka

    3 ай бұрын

    Same yaar 2-3 dusre video dekhkar aaya hu fir kuch kuch smj aaya hai 😢

  • @BakulchandraBhowmik-xv2cr

    @BakulchandraBhowmik-xv2cr

    2 ай бұрын

    You should watch previous videos .

  • @ashsaha5750

    @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

    @harshsrivastava7261

    2 ай бұрын

    Everything take time and patience, so go through the process not results

  • @parvezsayyed123
    @parvezsayyed1233 жыл бұрын

    you really deserve more likes and views

  • @AadityaSPatil
    @AadityaSPatil2 жыл бұрын

    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

    Жыл бұрын

    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.

  • @jeetjain2097
    @jeetjain20972 жыл бұрын

    big thanks to you harry sir. bhai c++ ka sabse bada confusion dur kar diya aapne.👍

  • @ravikantchauhan2106
    @ravikantchauhan2106Ай бұрын

    these two concepts can easily be covered within 10 minutes but but but.... he has a special quality to extend it upto 20 minutes...

  • @santoshupadhyay2848
    @santoshupadhyay28483 жыл бұрын

    Sir call by value nahi samjh aaya Can you repeat this topic please sir 🙏🏻

  • @sweetyagrawal3751

    @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); }

  • @wolfpride9416
    @wolfpride94162 жыл бұрын

    Very easy and clear explanations ... Thanks a ton

  • @dravidvaishnav8521
    @dravidvaishnav85212 жыл бұрын

    point to point explanation with perfect example , covered in minimum time , hats off harry bhai 🔥🔥

  • @KunalKumar-yw5wg
    @KunalKumar-yw5wg Жыл бұрын

    @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.

  • @AshutoshKumar-fu6qe
    @AshutoshKumar-fu6qe3 жыл бұрын

    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.

  • @prashantsingh-st6sj
    @prashantsingh-st6sj3 жыл бұрын

    thank you so much, Bhai for this kind of teaching

  • @abhaymishra7991
    @abhaymishra79912 жыл бұрын

    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 .

  • @AshutoshKumar-fu6qe
    @AshutoshKumar-fu6qe3 жыл бұрын

    17:25 It was some bit hard to understand. But I understood that.

  • @ROSHAN-bf5bj
    @ROSHAN-bf5bj2 жыл бұрын

    Every time I watch a video from harry i first like and then watch. Obviously every video is awesome.

  • @sahilprasantachoudhury911
    @sahilprasantachoudhury9113 жыл бұрын

    Self referential note: this video is important

  • @techwithpanwar1507
    @techwithpanwar15073 жыл бұрын

    Legends believe in harry bhai more than the other teacher.

  • @shaantyagi2187
    @shaantyagi21873 жыл бұрын

    Thanks bhaiya it is really helping to brush up the skills and learn new things and the snippets part was really unique .

  • @dipakdutta8783
    @dipakdutta87834 жыл бұрын

    Thanks Harish bhaiya

  • @NowThatsCool
    @NowThatsCool3 жыл бұрын

    thank you , much appreciated

  • @dilipdelwash3192
    @dilipdelwash31924 жыл бұрын

    Great Bro Thanks

  • @mianali5664
    @mianali56644 жыл бұрын

    You are doing nice work bro kindly keep it up

  • @ritikabali6466
    @ritikabali64663 жыл бұрын

    very well explained .

  • @jersingh6837
    @jersingh6837 Жыл бұрын

    Thanks harry bhai for these amazing series!

  • @ankitkumar012
    @ankitkumar0125 ай бұрын

    Superb series for c++ .............such a nice explanation

  • @user-qx9bi7kx4j
    @user-qx9bi7kx4j11 ай бұрын

    thank you harry bhaiya for explaining clearly

  • @engineerbhai7642
    @engineerbhai76424 жыл бұрын

    Thanks sir.

  • @robberz9154
    @robberz91547 ай бұрын

    great explanation harry bhai

  • @sameersoni3675
    @sameersoni36754 жыл бұрын

    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

    3 жыл бұрын

    Yeah ..

  • @tameemsani7387

    @tameemsani7387

    2 жыл бұрын

    yah right...

  • @UECAshutoshKumar
    @UECAshutoshKumar Жыл бұрын

    Thank you bhaiya ❤️

  • @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?

  • @sakibrayeen9966
    @sakibrayeen9966 Жыл бұрын

    Bro this concept of pointers and address is really conceptual

  • @raimubashirkharal8552
    @raimubashirkharal85522 жыл бұрын

    Great Sir!

  • @mohammadmohsinmohammedmohs9717
    @mohammadmohsinmohammedmohs97173 жыл бұрын

    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.

  • @BlackScreenProductions
    @BlackScreenProductions2 жыл бұрын

    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

  • @akashgupta6254
    @akashgupta62544 жыл бұрын

    Awesome..

  • @8dmusiccreations64
    @8dmusiccreations642 жыл бұрын

    7:50 pe pointer ki jgh upr print kraa do values fir to swap ho hi jaengi

  • @pulkit8133
    @pulkit81335 ай бұрын

    THANK YOU SIR

  • @sourabhcodes506
    @sourabhcodes5062 жыл бұрын

    kya anology hain bhaiya aapki. maaza aagayg.

  • @iSubhoo
    @iSubhoo3 жыл бұрын

    Thank you.

  • @096harshitgupta6
    @096harshitgupta62 жыл бұрын

    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

  • @pratham9087
    @pratham90874 жыл бұрын

    nice bro good explaination

  • @shivampremium4673
    @shivampremium46733 жыл бұрын

    woow ! fanstastic sir🤩😍

  • @royfamily9273
    @royfamily92732 жыл бұрын

    Thanks Harry Bhaiya

  • @Nidhi_jawariya
    @Nidhi_jawariya4 жыл бұрын

    Thank you sir

  • @D-Coder440
    @D-Coder440 Жыл бұрын

    Thank you Harry Bro 😊❣️

  • @AjinkyaAJJadhav
    @AjinkyaAJJadhav Жыл бұрын

    Harry sir, code likh ke har baar dry run krke dikhao.

  • @codesrhodes3757
    @codesrhodes37572 жыл бұрын

    bhot acha harry bhaiya

  • @aadarshupadhyay761
    @aadarshupadhyay7613 жыл бұрын

    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

    5 ай бұрын

    ​@@WILDfacts2.0 iam a beginner I'm in like 45th video of this playlist it's absolutely recommended for you

  • @adarshrajput8590
    @adarshrajput85903 жыл бұрын

    Yaar aap kitna badiya samjhate ho

  • @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

  • @l-9techadda321
    @l-9techadda3212 жыл бұрын

    Tnq Harry bhaiyea

  • @itm23animapriyadarsini35
    @itm23animapriyadarsini352 жыл бұрын

    Thank you soo much brother

  • @rajanijaiswal333
    @rajanijaiswal3334 жыл бұрын

    thank you bhai

  • @rajanijaiswal333

    @rajanijaiswal333

    4 жыл бұрын

    I like your video

  • @MZBLOCK
    @MZBLOCK3 жыл бұрын

    Samaj nahi aya par sunkr accha laga

  • @tanayraj2991
    @tanayraj29913 жыл бұрын

    You are the best

  • @AditiPanwar-ov8xi
    @AditiPanwar-ov8xiАй бұрын

    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

  • @Jolontokhalilswork
    @Jolontokhalilswork4 жыл бұрын

    thanks sir

  • @jashanpreetsingh6056
    @jashanpreetsingh60562 жыл бұрын

    good bro great

  • @srishtisingh4347
    @srishtisingh43473 жыл бұрын

    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...

  • @hrittickdebnath35
    @hrittickdebnath354 жыл бұрын

    Great

  • @MAMIR47711
    @MAMIR477116 ай бұрын

    Ge sir your lecture is very interesting and good method of teaching

  • @user-yg9xu6fl4o
    @user-yg9xu6fl4o11 ай бұрын

    Thank you sir.

  • @kidsfun.220
    @kidsfun.220 Жыл бұрын

    currect boss... your all the videos useful for me...............

  • @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.🙂

  • @samyakagarwal1777
    @samyakagarwal17772 жыл бұрын

    thanku so much sir .

  • @vaibhavpaliwal7754
    @vaibhavpaliwal77543 жыл бұрын

    harry bhai !! a, b dono pointer datatype k variables hai tw vo memory me space occupy nhi krenge kya ??

  • @neelsoni13062
    @neelsoni130622 жыл бұрын

    Brilliant Sir

  • @akshaybankar5228
    @akshaybankar52283 жыл бұрын

    void swap(int* a ,int* b){ int* temp=a; a=b; b=temp; } int main(){ int a=3,b=4; swap(a,b); cout

  • @AbhishekSharma-me
    @AbhishekSharma-me2 жыл бұрын

    thankyou bhaiya❤

  • @PraveenKumar-ev2lr
    @PraveenKumar-ev2lr2 жыл бұрын

    Keep growing sir😇😇🙏🙏

  • @nafisahmed3607
    @nafisahmed36072 жыл бұрын

    Take Love From Bangladesh Harry Bhai ❤️

  • @ravalsinhal8078
    @ravalsinhal807811 ай бұрын

    Thanks sir 🙏🏻🙏🏻

  • @itsaryanb9316
    @itsaryanb93163 жыл бұрын

    Was hard to understand but managed to understand it perfectly by the end of the day😃🥲👍

  • @GOJOANDSUKUNAFAN

    @GOJOANDSUKUNAFAN

    5 ай бұрын

    Damm i understood in a Hour no cap 🙂🤞

  • @koushik4178
    @koushik4178 Жыл бұрын

    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..

  • @manishrohila139
    @manishrohila1392 жыл бұрын

    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

  • @vivekbharadwaj4170
    @vivekbharadwaj4170 Жыл бұрын

    Carry's Mohit and Harry's Rohan never revealed 😎😁

  • @gagansharma1293
    @gagansharma1293 Жыл бұрын

    i think this hardest of all last videos

  • @nmg4898
    @nmg48983 жыл бұрын

    bhai please use dynamic inputs(like taking inputs from user)

  • @harshwardhanpawar5726
    @harshwardhanpawar57263 жыл бұрын

    Nice 👍

  • @chaolobi7698
    @chaolobi76982 жыл бұрын

    thanks harry bro

  • @Trading_Club007
    @Trading_Club007 Жыл бұрын

    confusion toh create ho gyi sir ji

  • @anonymousgerman2809
    @anonymousgerman28092 жыл бұрын

    thankyou harrybhiaya

  • @user-xp9pv3sh1c
    @user-xp9pv3sh1c10 ай бұрын

    great😍

  • @aakashsharma1126
    @aakashsharma11264 жыл бұрын

    Sir.. i follow your channel. Of c++ , please upload.. frequently.. i request you sir

  • @ks-vs2vc
    @ks-vs2vc3 жыл бұрын

    harry bro...smjh nhi aya what should i do....i am new to coding.