Call By Value & Call By Reference in C

Поділитися
Вставка
  • Опубліковано 7 жов 2018
  • C Programming & Data Structures: Call By Value & Call By Reference in C
    Topics discussed:
    1) Call by value method of passing arguments to a function.
    2) Call by reference method of passing arguments to a function.
    3) Example of the call by value method of passing the arguments.
    4) Example of the call by reference method of passing the arguments.
    C Programming Lectures: goo.gl/7Eh2SS
    Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
    Follow me on Instagram: @jaspreetedu(bit.ly/2YX26E5)
    Contribute: www.nesoacademy.org/donate
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy.org/recommende...
    Website ► www.nesoacademy.org/
    Forum ► forum.nesoacademy.org/
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #CProgrammingByNeso #CProgramming #CallByValue #CallByReference

КОМЕНТАРІ • 719

  • @davidmotz8963
    @davidmotz8963 4 роки тому +1534

    This dude got me to understand this in 8 minutes, while my CS Teacher didn't manage to teach me this in weeks.

    • @shivisingh7585
      @shivisingh7585 3 роки тому +17

      Seriously. 👍

    • @tasmiajannat576
      @tasmiajannat576 3 роки тому +67

      Why University teacher are so bad at teaching?😑

    • @nityodaytekchandani701
      @nityodaytekchandani701 3 роки тому +21

      @@brandonwisco Unfortunately, it's happening in my university also. Basically professor took 5 minutes to explain this, which we obviously didn't understand, then in every lecture he gives some questions and answer (in word document) which we copy and run. That's it.

    • @nithish_raina
      @nithish_raina 3 роки тому +9

      @@tasmiajannat576 Yup they r so bad at these essential concepts😞😞. Bt this guy made us satisfied with his explanation ryt..

    • @prashantpanwar8392
      @prashantpanwar8392 3 роки тому +10

      @@tasmiajannat576 they are not, they just dont care.

  • @banvideogames
    @banvideogames 5 років тому +484

    praise these indian tech channel!!!!

  • @shreedharchavan7033
    @shreedharchavan7033 3 роки тому +443

    1hr clg lecture covered in just 8.33 minutes with great explanation 🔥

    • @elavarasan.mjagan3354
      @elavarasan.mjagan3354 2 роки тому

      Same bro

    • @Anonymous-om7sq
      @Anonymous-om7sq 2 роки тому +10

      8min 33sec is actually 8.55 minutes.

    • @darpanpaliwal4906
      @darpanpaliwal4906 Рік тому

      True bro 💯🙌🏻

    • @rajankumarbaniya
      @rajankumarbaniya 5 місяців тому +1

      Don't compare your in person 1hr class with 9min youtube video, It is no doubt good for revision but to get detailed info on that particular topic, your college teacher is far better.

    • @m_e_h_u_l737
      @m_e_h_u_l737 5 місяців тому +1

      Bro There is diffence b/w offline live class and online pre-recorded powerpoint lecture.

  • @ayshauzmaja6927
    @ayshauzmaja6927 4 роки тому +246

    I forgot the concept and you reminded me in few minutes. Accent and the way of explanation is too good and calm. 👏👏

  • @blueSurfer
    @blueSurfer 5 років тому +310

    clear voice and to the point presentation with a dark background .i love it!!!

  • @mdshahporan9069
    @mdshahporan9069 2 роки тому +38

    I am a Mechanical major's student. After watching these videos, I am not only understanding what pointer is, I can guess what is going to happen inside the computer. This realization pushing me to the world of computer science. Thank you man.❤️

  • @SandipBhattacharya
    @SandipBhattacharya Рік тому +14

    Thank you for uploading this video. Let me briefly add by saying, there are two most popular ways to call functions for parameter passing.
    Call by Value: This method copies the value of an actual parameter or argument into the formal parameter of the function. Both actual and formal parameters are stored in different memory locations (in RAM). So, any changes made to the formal parameters in the called function are not reflected in the actual parameters in the calling function. By default, C programming uses call by value to pass parameters.
    Call by Reference: On the other hand, in the call by reference method, the address of an actual parameter is copied into the formal parameter. Both actual and formal parameters refer to the same memory location. So, any changes made to the formal parameters in the called function are actually reflected in the actual parameters of the caller function. In C, we can use pointers to get the effect of pass by reference or call by reference whatever you call it.
    Hope it helps!

  • @nataliew.4531
    @nataliew.4531 3 роки тому +14

    I swear I am in tears my professor tried to teach me this for many weeks and I never got it and now it sounds so simple comming from you!!! Thank you!!!

  • @newname8276
    @newname8276 Рік тому +13

    Wonderful explanation!! My college professor couldn't teach me this with 4 to 5 classes, but you could clear it all in 8 minutes!! Hats off, Sir!! ❤❤

  • @sathishbatta6781
    @sathishbatta6781 4 роки тому +57

    Hi brother,
    I can't express my words on your teaching.
    Clear, clarity and super explanation...
    Thank you Brother

  • @stever3886
    @stever3886 3 роки тому +23

    This is by far the best detail, WITH graphical description of what is going on. I watched this several times and this tutorial answers MANY questions I have had in the past. There is no “hand waving or smoke/ mirrors with this. Excellent job! Good pace and understandable.

  • @spidysensei21
    @spidysensei21 4 роки тому +27

    Great way of teaching!!.. remembered the whole concept in a few minutes.

  • @rhearajput3839
    @rhearajput3839 3 роки тому +28

    Thank you so much! I never understood it, even when it was taught in Java in 10th std and now when it's being taught in C++ in 12th! You're a life saver!

  • @mikasaackerman1863
    @mikasaackerman1863 3 місяці тому +1

    this is what i was trying to understand for one and a half year, as my professor greatly failed of making it understandable. i never realized it was such an easy subject and was always avoiding to really grasp it. i may as well say this video has changed my life because it actually made me realize that i can understand things from proper resources and there's no need to run from those sort of things. that i am making it such a big deal when i can understand it within minutes. nothing's that hard as it first seems to be. Thank you much for this video.

  • @bhavya2301
    @bhavya2301 3 роки тому +12

    On a scale of 1 to 10. You're An 11. 👏👏

  • @krishpatil9609
    @krishpatil9609 3 роки тому +8

    Impossible to express in words. Thank You So Much....ishwar tumcha bhala karo🙏♥️

  • @worlddream3704
    @worlddream3704 3 роки тому +11

    You are the best
    It is viewers luck to have you,imagine what happens if neso is not there?
    I can't express in words how your channel is improving our standards.
    Hats off.

  • @karenjames7538
    @karenjames7538 Рік тому +5

    Accurate and concise explanation. No lecturer has ever done this before. Good job

  • @WordsReality
    @WordsReality 3 роки тому +6

    I don't normally leave comments but this video was truly helpful. I was stressing about this topic until I found this video, you're a great teacher, thanks!!

  • @jagannathanav5108
    @jagannathanav5108 2 роки тому +8

    In short, when you pass a variables (say x,y) to a function , the function creates memory locations (local x and local y) which store the same value , but are not same as x and y. Therefore this does'nt affect the values of x and y, this is called as pass by value. When you pass the memory location of x and y itself, the function will change the memory location's value ,thereby affecting the variables. this is called pass by reference

  • @pradeepramola2295
    @pradeepramola2295 5 років тому +3

    Much better than many paid courses and reading books ty :)

  • @vik0_052
    @vik0_052 2 роки тому +2

    instead of hiring professors who are incoherent and lack the knowledge, I wish they show your videos and use peer to peer model for learning in all colleges. Your videos are amazing, the simple language and effective communication used in this video 🙏🙏👏👏

  • @tayyab.sheikh
    @tayyab.sheikh 6 місяців тому +2

    This is one of the most searched topic in C programming after Pointers.

  • @ramankumar41
    @ramankumar41 2 роки тому +5

    The best and the most clear explanation ever !!!

  • @AyushKumar-ju9jj
    @AyushKumar-ju9jj 3 роки тому +2

    Amazing! Much much much better than college teachers out there!!!

  • @scottzorr
    @scottzorr 2 роки тому +1

    WHAT A TUTORIAL!!!! such a simple and great way to teach me this! well done!

  • @lorenzobracciale4417
    @lorenzobracciale4417 Місяць тому +1

    This channel is just pure gold.

  • @Krithikaa18
    @Krithikaa18 3 роки тому +5

    100% clear explanation....thank you so much

  • @matousfamera6700
    @matousfamera6700 3 роки тому +22

    Thank you, man. Your presentation are so understandable. I learn more from your short videos in English than from long lectures in my own language.

  • @vinaychavan4364
    @vinaychavan4364 3 роки тому +6

    This was Gold. Thanks Much

  • @Bobbel888
    @Bobbel888 2 роки тому +1

    3:31 The confusion started, when Kernigan & Ritchie declared addresses to be "values" (probably for washing their hands of preceding programming languages). Think in the context of C++, where references are formally defined and are the same as dereferenced pointers, one might finally find the semantics of "call by reference" in C. This is well done here ! 🌟🌟🌟🌟🌟🌟🌟🌟🌟🌟

  • @SakshinA2
    @SakshinA2 3 роки тому +4

    So calm voice!

  • @SurajRajput-jb9nj
    @SurajRajput-jb9nj 2 роки тому +4

    I have gone through this video when i was in college to learn this topic ,after that i watched this video for exams, again i watched this for another subject ,and now i am watching this as my interview preparations😆👌👌

  • @angelevergreen999
    @angelevergreen999 Рік тому +1

    Really appreciate your works.
    Its really interesting to learn through your channel cuz of your fluency on explaining these things with details.

  • @odiaupdateyt
    @odiaupdateyt 2 роки тому

    I found this is one of the best yt channel where i clearing my all fundamental doubt with low time..
    Please continue this type of teachings style with basic fundamentals clear

  • @abhishekdubey9920
    @abhishekdubey9920 3 роки тому +3

    Thank you for making this content rich presentation

  • @umangraj6756
    @umangraj6756 3 роки тому +4

    Lot's of love to your channel sir.
    Best channel I ever came across 👍👍👍.
    This channel needs a great applauds and appreciations ❤️.🙏

  • @asdgqgqwe
    @asdgqgqwe 3 роки тому

    This video is basically teaching people C programming in 8 minutes and 33 seconds. Thanks!

  • @shwetakapse8510
    @shwetakapse8510 3 роки тому +1

    The way he explain each and every point simply great🙌

  • @shaik07
    @shaik07 2 роки тому +1

    1-2 hour class in just 8minutes.
    Thanks for this time saving and simple explanation

  • @nithishnagendra
    @nithishnagendra Рік тому +9

    u teach way better than Jenny's lecture thank u

  • @rahullgowda
    @rahullgowda 6 місяців тому

    this man make me understand the topic in 8 min and in other hand my teacher who dont know the concepts and making us to do seminar , this shows the difference btw good teacher and a teacher

  • @divyesh.shuklaa
    @divyesh.shuklaa 3 роки тому +6

    One can never appreciate neso academy in just few words✨

  • @mahimamiss7229
    @mahimamiss7229 4 роки тому +3

    You and your method of teaching both are great Sir. .
    Thanks

  • @swatigadekar4671
    @swatigadekar4671 3 роки тому +2

    Best video I have ever seen detailed explanation.. It made my concepts clear.

  • @vivek7187
    @vivek7187 4 роки тому +2

    great explaination. Thank you.

  • @codingrow
    @codingrow 7 місяців тому +3

    This lecture is directly stored in my brain 🧠 address ❤

  • @mitalinagarkar4642
    @mitalinagarkar4642 3 роки тому

    This is great .... explanation I retrieved all concepts again by watching this video lecture.

  • @Kushaan_1
    @Kushaan_1 3 роки тому +1

    Amazing and lucid explanation.
    Thanks a ton,sir!!

  • @ion4497
    @ion4497 Рік тому +5

    excelent work thanks !!!!

  • @sarvanisriharshitakandikon9455
    @sarvanisriharshitakandikon9455 3 роки тому +4

    Very clear explanation and neat and clean accent of english speaking. Even the presentation was very good. To the point explanation is really fantastic.

  • @MrChinmay916
    @MrChinmay916 2 роки тому +1

    Great, You have explained it clearly, Sir. Thank you.

  • @dominikn.5940
    @dominikn.5940 3 роки тому +1

    Very informative, easy to understand. Thank you very much!

  • @pratikpaudel7624
    @pratikpaudel7624 Рік тому +1

    Thank you so much! Helped a tons!

  • @nidhi6020
    @nidhi6020 2 роки тому +1

    Been searching alot to clear this doubt and finally my doubt is clear now. Thank you

  • @ChayK11
    @ChayK11 2 роки тому +1

    Hey,thank u so much man!!!!!!!
    I was trying to understand this functions topic for weeks and couldn't get even after watching it on many channels, but this Playlist is just incredible and very detailed...
    Awesome!!

  • @akshayagashe
    @akshayagashe 5 років тому +44

    That is the best description I have ever come across!!! CHEERS!!!! Thank you so much....

  • @blitzkrieg5454
    @blitzkrieg5454 5 років тому +1

    Thank you sir for your explanation.

  • @team_hashtag7494
    @team_hashtag7494 3 роки тому +2

    U r too good....really huge respect for u....u make the things so simple💝

  • @rangamjyothi531
    @rangamjyothi531 2 роки тому +2

    You make me understand this very quickly thank you sir..☺️☺️

  • @joshua_dlima
    @joshua_dlima 4 роки тому +7

    Thanks a billion sir really helped me 4 my 11 standard finals

  • @Ankit-mu2ce
    @Ankit-mu2ce 3 роки тому

    Everything is crystal clear....thanku so much

  • @ashimghoshfm
    @ashimghoshfm 4 місяці тому +1

    Really a great presentation. Thanks a lot, Dear Sir

  • @sahil2pradhan
    @sahil2pradhan 2 роки тому +1

    Great respect helped me to revise my concepts.

  • @amankant9734
    @amankant9734 3 роки тому +4

    this is the best video I ever have seen:) kudos to the efforts.

  • @rajan9064
    @rajan9064 3 роки тому +3

    amazing teaching sir!!! you teach way better than our college professors

  • @umehabiba3618
    @umehabiba3618 3 роки тому

    I am speechless here......its amazing presentation and method of teaching

  • @slimealvin8538
    @slimealvin8538 Рік тому

    Thanks dude, I spent days searching on this topic and I didn't understand this concept properly. You taught this to me in just 10 minutes.

  • @withotro8267
    @withotro8267 Рік тому

    Thank you so much for this explanation.

  • @muhammadmushfiqurrahman1653
    @muhammadmushfiqurrahman1653 2 роки тому

    This channel is so much AWESOME.

  • @az_t4758
    @az_t4758 Рік тому

    thanks to you, now i can see why we do pass an address to the scanf function

  • @yashsingh6508
    @yashsingh6508 3 роки тому +1

    Amazing video. The explanation was crystal clear.

  • @abhinavsj5347
    @abhinavsj5347 5 років тому +1

    Thank you sir. Nice presentation

  • @sukhdevisuryavanshi1184
    @sukhdevisuryavanshi1184 3 роки тому +1

    Unbelievable explanation thank you so much

  • @kahindi383
    @kahindi383 2 роки тому

    Beautifully and simply explained.

  • @rashmidasari5808
    @rashmidasari5808 Рік тому

    Thank you so much it clarified my doubts

  • @loveafinni
    @loveafinni Рік тому

    Well explained, thank you!

  • @rabiaimran3171
    @rabiaimran3171 2 роки тому

    A very simple and understandable concept ❤️ I read a lot of books but I only understand by your lecture.. thank you soo much for saving my time.. May Allah bless you

  • @hrishekaray9650
    @hrishekaray9650 5 років тому

    Thank you! very nice presentation.

  • @kowsikav4826
    @kowsikav4826 2 роки тому +1

    Very Well and clear explanation...👏
    Thank you so much sir...

  • @powerstarvicky8571
    @powerstarvicky8571 4 роки тому +1

    Very well explained clearly ,thank you.

  • @Oozy007
    @Oozy007 2 роки тому +1

    very useful ,thank you

  • @jkk9829
    @jkk9829 3 роки тому +1

    great explanation, thank you!

  • @amulyatg168
    @amulyatg168 4 роки тому +1

    wonderfully explained.Got a very clear idea of the concept 🤩

  • @pragatichauhan7274
    @pragatichauhan7274 3 роки тому

    Best video in youtube for Call By Value & Call By Reference differenece

  • @kirti2600
    @kirti2600 3 роки тому +1

    So precisely explained 👏 👌...awesome !!!

  • @anubhabchowdhury9296
    @anubhabchowdhury9296 4 роки тому +1

    U explain so well man...loved it

  • @rajukani100
    @rajukani100 7 місяців тому

    pointer thought in 8 min. just wow content ~ Thank you

  • @abhishekmall4943
    @abhishekmall4943 3 роки тому

    Jo chahiye tha whi mila point to point thankww so much sir👍🏻

  • @anmolranjan7134
    @anmolranjan7134 Рік тому

    Such a great explanation...
    Ever I seen...
    Thanku so much sir..
    Now I not need to move any where...
    I found our destination ❤

  • @satyajitmanna8501
    @satyajitmanna8501 2 роки тому

    Best c and c++ teacher ❤️ like love from India. ✌️❤️

  • @quocbaoha8373
    @quocbaoha8373 2 роки тому

    for the bottom of my heart, thank you

  • @peaceseeker7419
    @peaceseeker7419 2 роки тому

    Really helped.
    Thank you

  • @sakshamkochhar2162
    @sakshamkochhar2162 5 років тому +1

    Excellent explaination .

  • @PhantomBlank
    @PhantomBlank 5 років тому +1

    fantastic explaination!

  • @sriveninukrishna1309
    @sriveninukrishna1309 3 роки тому

    Thank you for your afforts sir

  • @tigga_night5901
    @tigga_night5901 Рік тому

    Amazing this is the right way to explain, amazing teaching.

  • @abhishekkumarsingh281
    @abhishekkumarsingh281 3 роки тому

    Very well explained.. thankyou

  • @aruneshwarkoraboina6381
    @aruneshwarkoraboina6381 3 роки тому

    Excellent presentation ...Now I got clearly understood

  • @prajwalgowda6206
    @prajwalgowda6206 3 роки тому

    in love with is voice and teaching thanku dude