Category
đź“š
LearningTranscript
00:00Hello everyone. This is Sandeep. Today I am going to explain that why we use
00:09ampersand sign or you can say the and sign with the variables when we have to
00:15input something from the keyboard and that is going to store inside the
00:20variables. So inside the scanf function we use ampersand sign or you can say
00:27the and sign with the variables. So what is the reason behind it. So I am going to
00:33explain this thing with one of the realistic approach example and the
00:37things will be clear to all of you. Let me explain. Suppose this person has to go
00:45to a particular location. So what he has to do the first thing which he has to do
00:52is to read the address of that location. So he is going to read the address from
00:58his address book. Once he will get the address of that location this person
01:03will go to that particular location. He will reach the destination. Now the same
01:09methodology the same architecture is there in programming in C programming
01:14also. The and represent address of A. The and or you can say the ampersand
01:22represent the address of B. So what it is indicating it's indicating to the
01:28compiler that first go and see the address of A and address of B then take
01:35the value which is input from the keyboard and store inside A variable and
01:41B variable. So and represent to the address to the address of A and address
01:47of B. So first to read the address, reach the location and then store the value
01:54inside it. I hope you understand. In the next video I will explain something else.
01:59Bye