1
00:00:00,060 --> 00:00:02,740
So let's we have a good topic.

2
00:00:03,190 --> 00:00:11,850
Find us, which is the most amazing feature of C++ by most hated feature of C++, which is by hated

3
00:00:11,850 --> 00:00:15,210
by a lot of students because it's more kind of creativity.

4
00:00:15,540 --> 00:00:21,630
They feel very difficult to understand the concept of blindness, but in this course, we will be seeing

5
00:00:21,630 --> 00:00:25,650
blindness in a very easy and understandable manner.

6
00:00:25,680 --> 00:00:27,690
Let's jump to next to blindness.

7
00:00:27,930 --> 00:00:35,940
So you know this already every variable e-SIM memory, location and every memory location as its address

8
00:00:35,940 --> 00:00:38,940
defined, which can be accessed using Ampersand.

9
00:00:38,970 --> 00:00:43,860
Operator This island is called Ampersand Operator, which denotes said addressing the memory.

10
00:00:43,890 --> 00:00:49,290
So we do have a lot of variables when we create a variable by variable.

11
00:00:49,790 --> 00:00:54,130
Let me get that lined up for you, and Carla is currently right.

12
00:00:54,150 --> 00:00:55,020
I'm going to wait.

13
00:00:55,410 --> 00:01:00,030
Suppose we will create a declaration like this index.

14
00:01:00,210 --> 00:01:06,840
OK, what happens in the background when we define axis like inside the memory of computer, which is

15
00:01:06,840 --> 00:01:11,100
our primary memory of the computer like run right?

16
00:01:11,460 --> 00:01:17,470
Random access memory as Bayes will be created for this particular variable called X.

17
00:01:17,520 --> 00:01:17,940
OK.

18
00:01:18,000 --> 00:01:22,470
And this is going to be called X, and it will be a position in the memory.

19
00:01:22,740 --> 00:01:29,940
OK, so memory is always like kind of a warning against same storage unit in that computer, like a

20
00:01:29,940 --> 00:01:33,840
single cell in Excel that have a lot of cells in that memory.

21
00:01:33,880 --> 00:01:35,520
OK, electronic sense, right?

22
00:01:35,730 --> 00:01:42,540
Electronic sets in the memory business store the value, which we suppose if I am leaving ICSI or to

23
00:01:42,540 --> 00:01:49,420
index equal to five, then a memory will be created for storing the variable X and it will have our

24
00:01:49,890 --> 00:01:50,070
debt.

25
00:01:50,250 --> 00:01:51,930
That memory will have an address.

26
00:01:51,960 --> 00:01:58,920
Suppose if that person, you know, a person that was in Atlanta, similarly a memory which is located

27
00:01:58,920 --> 00:02:04,350
in a computer and address with that address only you may be able to access that memory.

28
00:02:04,470 --> 00:02:06,600
So suppose this address is five thousand.

29
00:02:06,630 --> 00:02:12,660
So it will be a numeric number and I find your money string that can be the address marked for the easiness

30
00:02:12,660 --> 00:02:14,380
for the sake of an X somewhere.

31
00:02:14,550 --> 00:02:19,800
I am taking the address of this memory has 5000 and naming that memory as X.

32
00:02:19,820 --> 00:02:26,400
It will also store the indigent data type because that kind of memory will be created inside that primary

33
00:02:26,400 --> 00:02:27,360
memory of the computer.

34
00:02:27,370 --> 00:02:28,950
And if I am giving a secret of.

35
00:02:29,460 --> 00:02:33,660
What happens is this memory allocation will contain the value file.

36
00:02:33,780 --> 00:02:36,280
I think you have understood this concept, right?

37
00:02:36,300 --> 00:02:42,150
So each and every variable we create in a computer will be associated with that memory, and that memory

38
00:02:42,150 --> 00:02:45,540
will have an address and name and a Typekit.

39
00:02:45,540 --> 00:02:50,990
And suppose if I want to access this file number five, right, I have two ways.

40
00:02:51,000 --> 00:02:57,230
One, ways like statically assessing that wherever x because X stands for file.

41
00:02:57,330 --> 00:02:57,720
OK.

42
00:02:57,840 --> 00:03:03,690
When you ask the computer for X, it will fetch five and give it back to you, right?

43
00:03:03,810 --> 00:03:04,740
That is one way.

44
00:03:04,780 --> 00:03:08,250
Another way of getting five is for like that does buy it.

45
00:03:08,580 --> 00:03:14,910
So instead of getting exactly, you can use that prospects to get the value file.

46
00:03:14,940 --> 00:03:22,190
Suppose I want to get the value from the Access Memory 5000, so I will be giving that address off x

47
00:03:22,230 --> 00:03:22,640
OK.

48
00:03:22,650 --> 00:03:26,040
It will be like five thousand will get off x.

49
00:03:26,040 --> 00:03:28,440
That will also fetch me the same value.

50
00:03:28,440 --> 00:03:34,120
Five Because X is the Alias X's distinct name given for this 5000 X.

51
00:03:34,170 --> 00:03:37,770
Actually, that data is stored in the value five thousand.

52
00:03:37,770 --> 00:03:42,840
So even if you run forensics, or even if you would reference five thousand, you will be getting the

53
00:03:42,840 --> 00:03:46,110
same value file, which will be stored in that location.

54
00:03:46,110 --> 00:03:51,060
So that kind of thing that this address is for that point.

55
00:03:51,180 --> 00:03:51,640
OK.

56
00:03:51,660 --> 00:03:58,100
So in order to access the press up everywhere, we use this operator, Ga Amberson.

57
00:03:58,120 --> 00:04:01,650
And if I want to access the variable, I will use the variable name.

58
00:04:01,650 --> 00:04:04,590
If I want to access that, I press off that variable.

59
00:04:04,710 --> 00:04:07,100
I will be getting Amberson symbol.

60
00:04:07,140 --> 00:04:07,620
OK.

61
00:04:07,710 --> 00:04:11,760
This is very simple topic, but often confused in many ways.

62
00:04:12,210 --> 00:04:14,430
So what will be the value of X X?

63
00:04:14,430 --> 00:04:15,270
Will we fight?

64
00:04:15,270 --> 00:04:21,490
What will be the value of Amberson X and Busan X means I trust X and it will be fine.

65
00:04:22,050 --> 00:04:28,590
And by modeling, last thing you have to know, suppose I have the address of X and I need to get that

66
00:04:28,590 --> 00:04:31,380
value of X on that address, right?

67
00:04:31,410 --> 00:04:33,120
Then you use an operator.

68
00:04:33,120 --> 00:04:37,350
Can't start opening at the start of this address means OK.

69
00:04:37,380 --> 00:04:43,680
Start off 5000 means fire, which means the value in, say, d 5000 is now.

70
00:04:43,680 --> 00:04:48,450
Let's see, point us in action so that we will understand this concept a little bit more.

71
00:04:48,540 --> 00:04:50,310
So I will jump to the demo.

72
00:04:50,340 --> 00:04:53,100
Let's jump to Visual Studio four.

73
00:04:53,250 --> 00:04:57,180
So I have a smaller program repeated a four point bind us.

74
00:04:57,180 --> 00:04:59,780
So behind us are variables which.

75
00:05:00,270 --> 00:05:05,290
Actually stored the actress off their support, I wanted to store the actress.

76
00:05:06,030 --> 00:05:10,350
Let me go back to the slide again so you can get this point clear.

77
00:05:13,470 --> 00:05:14,910
Let me get the pen.

78
00:05:15,310 --> 00:05:16,150
It's right.

79
00:05:22,070 --> 00:05:27,800
So similarly, the is I have already defined that example let go with that next summer.

80
00:05:27,800 --> 00:05:35,370
So that is a memory allocation in computer and it's addresses 5000 and its name is X and it started

81
00:05:35,370 --> 00:05:36,650
the value seven.

82
00:05:36,680 --> 00:05:37,130
OK.

83
00:05:37,400 --> 00:05:43,190
So Ambas Index, if we are writing Amberson X, it will mean five thousand.

84
00:05:43,220 --> 00:05:49,340
So if I want to store the address of the meeting room, I need to create X separate media for that.

85
00:05:49,340 --> 00:05:51,380
So that variable is going down.

86
00:05:51,380 --> 00:05:59,870
So I'm creating a variable star BTR distorted address topics so start to be Dyadic or to send off X.

87
00:05:59,930 --> 00:06:03,860
If I am printing start media right now, I will get five thousand.

88
00:06:03,900 --> 00:06:06,050
OK, so start to be defined.

89
00:06:06,050 --> 00:06:10,040
There is a variable which will store the address of another medium.

90
00:06:10,070 --> 00:06:16,070
So like any variable I can send you, you must declare that lined up before you work with it, so you

91
00:06:16,070 --> 00:06:17,540
have to address declarer point.

92
00:06:17,630 --> 00:06:22,160
Suppose we have lined up which can store that does off an integer variable.

93
00:06:22,190 --> 00:06:28,420
Then that point should be like declare like this int start b d x dad will make a deadline.

94
00:06:28,580 --> 00:06:29,690
So non what do you mean?

95
00:06:29,690 --> 00:06:31,990
Declare a variable like this index?

96
00:06:32,000 --> 00:06:37,460
And if I want to start a variable that stores are transfixed, then I have to declare a pointer and

97
00:06:37,460 --> 00:06:38,570
appoint a declaration.

98
00:06:38,570 --> 00:06:40,250
We have this stock symbol.

99
00:06:40,250 --> 00:06:44,360
So type star variable name type is the point US based type.

100
00:06:44,360 --> 00:06:51,440
It must be valid C++ type and then it should be managed by the declaration examiners who can see or

101
00:06:51,440 --> 00:06:58,520
hear in start IP numbers that the be flawed stop FP and Stop C. It's to start C.

102
00:06:58,520 --> 00:07:03,140
It's these are some examples of these things are actually act as a pointer to it.

103
00:07:03,680 --> 00:07:07,820
OK, so you have to know that Bayes Type R, so that's one thing you have to do.
