Call By Value & Call By Reference in C

preview_player
Показать описание
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.

Music:
Axol x Alex Skrindo - You [NCS Release]

#CProgrammingByNeso #CProgramming #CallByValue #CallByReference
Рекомендации по теме
Комментарии
Автор

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

davidmotz
Автор

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

shreedharchavan
Автор

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

ayshauzmaja
Автор

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

blueSurfer
Автор

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

mdshahporan
Автор

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!

SandipBhattacharya
Автор

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!!! <3 <3 <3

nataliew.
Автор

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!! ❤❤

newname
Автор

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.

stever
Автор

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

sathishbatta
Автор

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!

rhearajput
Автор

u teach way better than Jenny's lecture thank u

nithishnagendra
Автор

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.

worlddream
Автор

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

spidysensei
Автор

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

krishpatil
Автор

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

jagannathanav
Автор

I was terrified by this topic, since everyone will say, "it's quite complicated, let me try though." But the way you've taught it, it's absolutely clear and I am ready to teach them for sure. :D Thank You so much Neso Academy. Your contents never disappoint. Love this channel. ❤

sonakshimishra.
Автор

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.

mikasaackerman
Автор

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

karenjames
Автор

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

bhavya