1
00:00:01,560 --> 00:00:02,280
Hi, everyone.

2
00:00:02,400 --> 00:00:03,630
Welcome back to the cause.

3
00:00:04,140 --> 00:00:08,630
So today we will learn a new topic called Dear Friends Fence Operator.

4
00:00:10,170 --> 00:00:10,710
So.

5
00:00:11,990 --> 00:00:13,060
Intake was 10.

6
00:00:16,330 --> 00:00:19,390
And Star B equals and by sendoff, Delphi.

7
00:00:22,120 --> 00:00:22,810
See out.

8
00:00:23,810 --> 00:00:24,540
Address off.

9
00:00:24,940 --> 00:00:26,980
I see out.

10
00:00:30,170 --> 00:00:30,880
See out.

11
00:00:34,770 --> 00:00:37,200
See out defense be.

12
00:00:38,570 --> 00:00:41,210
So let's see where the real output of each line.

13
00:00:41,900 --> 00:00:43,160
So what this line will do?

14
00:00:44,060 --> 00:00:46,280
I will get four bytes of memory space.

15
00:00:47,300 --> 00:00:51,080
Let's say the addresses 700 and the value is.

16
00:00:52,100 --> 00:00:53,480
And this is my symbol table.

17
00:00:57,130 --> 00:01:01,210
So there is a variable eye and it's memory addresses.

18
00:01:01,430 --> 00:01:02,110
700.

19
00:01:05,900 --> 00:01:07,100
So what this land will do?

20
00:01:07,580 --> 00:01:12,230
I will get a pointer B days for bites.

21
00:01:13,940 --> 00:01:16,490
It will restore 700 basically and resolve.

22
00:01:17,360 --> 00:01:19,640
And let's say it addresses 900.

23
00:01:20,670 --> 00:01:26,040
Those days are variable B, there's a point to B, and it addresses nine entered.

24
00:01:27,410 --> 00:01:33,400
See out at so if I some output will be 700 C out B.

25
00:01:33,470 --> 00:01:35,120
So B is 700.

26
00:01:35,120 --> 00:01:36,530
B is containing 700.

27
00:01:36,980 --> 00:01:39,020
So 700 C yesterday.

28
00:01:39,800 --> 00:01:40,250
I will go.

29
00:01:40,330 --> 00:01:42,110
Plus I will go towards the symbol table.

30
00:01:42,200 --> 00:01:43,310
Yes, there is a variable.

31
00:01:43,400 --> 00:01:46,990
I and the variable I is stored at memory location 700.

32
00:01:47,690 --> 00:01:51,820
So I will go to memory location seven ended and the value is ten.

33
00:01:52,310 --> 00:01:54,830
So my output here will be ten.

34
00:01:55,910 --> 00:01:57,170
Now this is something new.

35
00:01:58,940 --> 00:02:01,650
This is something new that we have not seen before.

36
00:02:02,030 --> 00:02:04,720
So this operator is called Dereference Operator.

37
00:02:05,060 --> 00:02:06,170
So what it will do.

38
00:02:06,740 --> 00:02:10,100
It will go to first of all, I will go to various be stored.

39
00:02:11,440 --> 00:02:13,360
So peace to that memory location.

40
00:02:13,450 --> 00:02:14,130
Nine hundred.

41
00:02:14,800 --> 00:02:16,240
So I will go to 900.

42
00:02:18,580 --> 00:02:20,470
Then memory addresses.

43
00:02:20,530 --> 00:02:22,760
So when I did so, I wouldn't go to seven ended.

44
00:02:23,800 --> 00:02:25,750
And then I will print this value.

45
00:02:26,440 --> 00:02:28,300
So basically 10 will be printed here.

46
00:02:28,880 --> 00:02:29,340
Ten.

47
00:02:30,520 --> 00:02:31,510
And then.

48
00:02:33,070 --> 00:02:40,590
OK, so ampersand A and B Botel, same eye and defense.

49
00:02:40,760 --> 00:02:42,520
B, they both the same.

50
00:02:43,540 --> 00:02:47,620
OK, so let's see with the help of an example then I will expand it further.

51
00:02:50,160 --> 00:02:56,180
So I have a variable eye, which is 10 now letters.

52
00:02:57,950 --> 00:03:03,440
That does create a pointer B, which will store the address of A.

53
00:03:06,830 --> 00:03:09,900
Now, let us try to bring the value of high.

54
00:03:10,640 --> 00:03:14,540
And let us also pride to print, also tried to lead offense be.

55
00:03:25,120 --> 00:03:31,750
So what I want to say is the output of line number nine and line number 10 is seam that is then.

56
00:03:36,100 --> 00:03:39,130
So our would coming out to be same Ben and Ben.

57
00:03:44,210 --> 00:03:45,920
So what this line is doing.

58
00:03:49,260 --> 00:03:49,870
Bromates.

59
00:03:51,790 --> 00:03:52,280
Memories.

60
00:03:52,370 --> 00:03:52,850
So an.

61
00:03:53,590 --> 00:03:54,330
Value is.

62
00:03:55,500 --> 00:03:56,680
What this line will do.

63
00:03:59,010 --> 00:04:01,500
Pointer is a four bytes in my system.

64
00:04:03,280 --> 00:04:08,140
It is starting so ended and let's say its addresses, 800 Soucy out.

65
00:04:08,190 --> 00:04:09,430
I means print.

66
00:04:09,460 --> 00:04:13,600
Then with the help of symbol, they will not be in a frenzy.

67
00:04:14,170 --> 00:04:16,540
So this is pointing towards this.

68
00:04:16,600 --> 00:04:24,480
This is a pointer it this pointing towards I so point Burpee is pointing towards.

69
00:04:24,630 --> 00:04:32,500
I did a fence means go to that memory, location and print whatever is stored in it.

70
00:04:32,910 --> 00:04:34,450
So my output will be 10.

71
00:04:35,830 --> 00:04:37,260
OK, so one more time.

72
00:04:38,550 --> 00:04:45,420
I have four bytes of memory space values, 10.

73
00:04:46,870 --> 00:04:48,620
And it's doses seven.

74
00:04:50,000 --> 00:04:52,280
I have, again, four bites of memory space.

75
00:04:53,210 --> 00:04:56,690
This is a pointer, B, it's Ducey's, let's say 800.

76
00:04:56,960 --> 00:04:58,850
And it is pointing towards this.

77
00:05:00,260 --> 00:05:06,680
So when you will try and print the reference B or B, reference B meaning.

78
00:05:06,760 --> 00:05:13,250
So the meaning of the defense B is go to the memory location and print the content.

79
00:05:13,760 --> 00:05:15,670
So that's why Dennis printed here.

80
00:05:16,820 --> 00:05:17,980
OK, so.

81
00:05:19,870 --> 00:05:25,630
Now, a little sprint, and this is so she out and densify.

82
00:05:29,330 --> 00:05:30,780
See out B.

83
00:05:31,520 --> 00:05:38,390
So the output will be seem so big because B is containing the address of I only.

84
00:05:41,730 --> 00:05:43,740
OK, so here will be an online.

85
00:05:48,040 --> 00:05:49,780
So there this is the same.

86
00:05:51,720 --> 00:05:57,950
Now, you can also change the venue, for example, I equals 23.

87
00:05:58,800 --> 00:06:00,570
So if you will bring the value of I

88
00:06:03,870 --> 00:06:06,690
ordered will be 23, the value of you has been changed.

89
00:06:09,030 --> 00:06:13,240
Certain degree, you can also change the way you're fighting with the help of pointer.

90
00:06:14,130 --> 00:06:16,800
So did a fence be it was 32.

91
00:06:17,730 --> 00:06:20,190
And now let us spend the value of AI again.

92
00:06:21,210 --> 00:06:23,700
So now the value of AI is 32.

93
00:06:26,590 --> 00:06:28,480
So the value of AI is hard to do.

94
00:06:29,150 --> 00:06:30,610
Now let's see how it happens.

95
00:06:35,420 --> 00:06:37,310
So we have to focus on these lines.

96
00:06:37,820 --> 00:06:44,660
OK, so I equal day three and Defense B equals 32.

97
00:06:45,730 --> 00:06:49,300
So first of all, what I will do, I will search in the symbol table.

98
00:06:49,530 --> 00:06:54,140
So there is a variable I and the variable I has got to memory this of 700.

99
00:06:55,170 --> 00:06:59,930
So this is memory at this seven hundred and the value is initially ten.

100
00:07:01,210 --> 00:07:09,700
So I will go to this memory this and I will change its value to 23 and here twenty three will be printed.

101
00:07:11,200 --> 00:07:13,000
Now let us focus on this line.

102
00:07:13,990 --> 00:07:15,940
So what will happen first of all?

103
00:07:15,970 --> 00:07:18,430
I will go into Simbel Table and search for P.

104
00:07:18,520 --> 00:07:18,940
Yes.

105
00:07:19,030 --> 00:07:19,670
There is a point.

106
00:07:19,680 --> 00:07:22,360
Turpie Its memory at this is 800.

107
00:07:23,290 --> 00:07:25,240
So what I will do, I will.

108
00:07:26,260 --> 00:07:28,640
So this is a pointer letters.

109
00:07:28,860 --> 00:07:30,580
This is 800.

110
00:07:30,640 --> 00:07:32,500
And the value stored is 700.

111
00:07:32,920 --> 00:07:35,840
So I will reach here since it's dear friends.

112
00:07:36,130 --> 00:07:36,940
So what I will do.

113
00:07:37,480 --> 00:07:40,180
This is pointing towards this remote location.

114
00:07:40,480 --> 00:07:41,350
So I will come here.

115
00:07:43,020 --> 00:07:47,880
And I will change its value to try to do so at this line.

116
00:07:48,970 --> 00:07:49,940
32 different.

117
00:07:51,870 --> 00:07:52,150
OK.

118
00:07:57,530 --> 00:08:01,420
So what I want to say is we have to raise.

119
00:08:02,700 --> 00:08:03,480
To access.

120
00:08:05,470 --> 00:08:06,610
Team memory.

121
00:08:10,980 --> 00:08:13,560
We have two ways to access the same memory.

122
00:08:13,830 --> 00:08:16,470
First is with the help of variable eye.

123
00:08:17,010 --> 00:08:24,960
And second, with the help of point therapy, basically the offense be so I question D3 star be equipped

124
00:08:25,010 --> 00:08:25,580
to do, too.

125
00:08:26,040 --> 00:08:32,370
They both have the same eye and Dabi, they both had same, if you will, change any of them.

126
00:08:32,670 --> 00:08:35,490
That will change the visual inflected input.

127
00:08:36,850 --> 00:08:42,000
OK, so we have two ways to access the same memory.

128
00:08:42,210 --> 00:08:44,460
First, with the help of Variable I.

129
00:08:46,160 --> 00:08:49,070
And second, with the help of Pointer B..

130
00:08:50,200 --> 00:08:53,200
Both are pointing towards the same memory location.

131
00:08:54,290 --> 00:08:56,290
OK, so now let's see.

132
00:08:57,230 --> 00:08:59,750
Some predict the output equation.

133
00:09:00,350 --> 00:09:01,150
So this is a.

134
00:09:02,330 --> 00:09:03,920
We have to predict its output.

135
00:09:04,340 --> 00:09:05,570
So we can take our time.

136
00:09:06,110 --> 00:09:07,790
You can post a video if you want to.

137
00:09:08,440 --> 00:09:10,670
So now let's see what will be our output.

138
00:09:13,760 --> 00:09:14,300
So.

139
00:09:18,030 --> 00:09:22,680
This is a the value is seven and let's say the memory addresses 700.

140
00:09:24,370 --> 00:09:24,590
OK.

141
00:09:24,690 --> 00:09:30,750
So I have B. Ray Lewis, 17, and let's say the memory addresses 800.

142
00:09:31,620 --> 00:09:37,390
I make a pointer which is storing their does B, so I have a point.

143
00:09:37,410 --> 00:09:41,120
I see it distorting the address of B.

144
00:09:41,400 --> 00:09:43,860
And let's say it's our business 800.

145
00:09:44,670 --> 00:09:47,390
So, dear friends, C, quiz seven.

146
00:09:47,430 --> 00:09:48,210
So go ahead.

147
00:09:49,020 --> 00:09:49,830
Make it seven.

148
00:09:52,200 --> 00:09:54,140
I'll see you out A and B..

149
00:09:54,450 --> 00:09:56,520
So A seven B is seven.

150
00:09:56,820 --> 00:09:58,290
So seven and seven.

151
00:09:58,410 --> 00:09:59,280
This is Malverde.

152
00:10:00,810 --> 00:10:02,220
So seven and seven.

153
00:10:02,940 --> 00:10:05,110
Now C is containing the Sophie.

154
00:10:05,520 --> 00:10:09,000
So C is containing the address of A.

155
00:10:10,350 --> 00:10:17,790
Now, go to that memory location, did a fancy go to that memory location and change its value to 17.

156
00:10:17,840 --> 00:10:19,340
So nowadays, 17.

157
00:10:20,470 --> 00:10:25,300
To be out and then be so is 17, B is seven.

158
00:10:25,900 --> 00:10:27,250
So this should be my output.

159
00:10:27,550 --> 00:10:29,650
Seven seven, 17, seven.

160
00:10:30,760 --> 00:10:31,750
OK, so let's see.

161
00:10:38,190 --> 00:10:40,440
So seven seven seven deden seven.

162
00:10:40,840 --> 00:10:42,730
So our prediction is hundred percent correct.

163
00:10:43,470 --> 00:10:44,710
Now let's see when McCuistion.

164
00:10:47,900 --> 00:10:49,250
So this is our question.

165
00:10:50,270 --> 00:10:52,070
If you want to take some time, you can take.

166
00:10:52,970 --> 00:10:54,050
You can post the video.

167
00:10:54,440 --> 00:10:56,270
So let's see the solution.

168
00:10:58,040 --> 00:10:58,260
OK.

169
00:10:58,310 --> 00:10:58,880
So.

170
00:11:01,220 --> 00:11:06,840
I have a variable, a very loose 50, and let's say it's Airbus's 700.

171
00:11:08,060 --> 00:11:12,100
Now I have a point that BTR, so I have a pointer.

172
00:11:13,100 --> 00:11:14,690
Its name is BTR.

173
00:11:15,170 --> 00:11:17,120
And Distorting the air does Sophie.

174
00:11:17,360 --> 00:11:18,950
That is seven 700.

175
00:11:20,660 --> 00:11:22,360
Now, I have again appointed you.

176
00:11:22,550 --> 00:11:23,900
So I have a point.

177
00:11:24,010 --> 00:11:28,070
Q Let's say the memory does of PDR is 800.

178
00:11:29,500 --> 00:11:30,370
So I have a point.

179
00:11:30,520 --> 00:11:34,580
Q It's value copy the value of BTR.

180
00:11:35,140 --> 00:11:38,410
So it is 700 starky plus plus.

181
00:11:38,740 --> 00:11:41,800
So basically dereference so go to that memory location.

182
00:11:42,820 --> 00:11:43,780
I have reached here.

183
00:11:44,090 --> 00:11:45,660
Stargell means 50.

184
00:11:45,930 --> 00:11:47,140
So 50 plus plus.

185
00:11:47,200 --> 00:11:51,060
So it will become 51 C out a.

186
00:11:51,790 --> 00:11:52,720
So 51.

187
00:11:53,740 --> 00:11:58,730
And percent of P.D.A 800, their best of breed, are at this off.

188
00:11:58,760 --> 00:12:01,450
Q So let's to their dose of QE is nine hundred.

189
00:12:01,970 --> 00:12:03,510
So output will be nine hundred.

190
00:12:03,920 --> 00:12:05,120
So this will be output.

191
00:12:06,590 --> 00:12:07,930
These two are no loose.

192
00:12:10,470 --> 00:12:16,320
OK, so one common thing that many people confuse here is this line line embedded.

193
00:12:20,010 --> 00:12:21,840
And Star Q equals.

194
00:12:22,770 --> 00:12:24,930
So many people will get confusion here.

195
00:12:25,500 --> 00:12:25,920
So.

196
00:12:27,060 --> 00:12:29,630
When I write and equals me.

197
00:12:29,850 --> 00:12:30,690
So what will happen?

198
00:12:30,930 --> 00:12:33,170
The value of B will be copied into A.

199
00:12:33,720 --> 00:12:38,790
So if and B question and B questions, the value of A will also become.

200
00:12:38,890 --> 00:12:41,580
Then basically copy the value of being to a.

201
00:12:41,790 --> 00:12:44,850
Because both are of type integer here.

202
00:12:45,180 --> 00:12:46,080
Both are of type.

203
00:12:47,460 --> 00:12:56,940
And star, BTR, a quiz and person off a show here copy the valley of BTR in to kill because both are

204
00:12:56,940 --> 00:12:58,080
of type in star.

205
00:12:58,740 --> 00:12:59,590
So that's why I go.

206
00:12:59,630 --> 00:13:01,500
But that's why I copied the value.

207
00:13:01,560 --> 00:13:02,550
So I went in there and took.

208
00:13:02,580 --> 00:13:05,280
Q OK, so this is my output.

209
00:13:06,750 --> 00:13:08,180
Fifty one and two.

210
00:13:08,280 --> 00:13:08,940
No lose.

211
00:13:09,930 --> 00:13:10,560
So let's see.

212
00:13:16,410 --> 00:13:20,580
So 51 and do it, and I may lose two eggs or decimal numbers.

213
00:13:21,550 --> 00:13:21,810
OK.

214
00:13:23,720 --> 00:13:24,420
If you will.

215
00:13:24,970 --> 00:13:25,440
Brian.

216
00:13:25,540 --> 00:13:28,670
Brenda Veli of Dead and Guillard output will be same.

217
00:13:29,040 --> 00:13:29,860
They will lose seem.

218
00:13:30,170 --> 00:13:32,090
They brought us doing their dose of a.

219
00:13:34,050 --> 00:13:38,440
So we'll see you out there, Sophie.

220
00:13:41,150 --> 00:13:42,530
Now, all these tea lines.

221
00:13:43,730 --> 00:13:46,220
Well, today, N14 will have the same output.

222
00:13:46,660 --> 00:13:48,250
That is the address of a.

223
00:13:52,670 --> 00:13:54,910
You can see here the address of a.

224
00:13:55,640 --> 00:13:56,450
So now.

225
00:14:01,370 --> 00:14:04,770
So here we have three ways here.

226
00:14:05,210 --> 00:14:09,380
We have three ways to access the same memory.

227
00:14:10,220 --> 00:14:12,830
Three ways to access the same memory.

228
00:14:13,040 --> 00:14:18,530
First, with the help of variably equals 10 seconds with the help of variable PDA.

229
00:14:18,620 --> 00:14:22,920
So any PDA equals twenty powered with the help of another point.

230
00:14:23,060 --> 00:14:24,140
Q So.

231
00:14:24,180 --> 00:14:25,670
And you start.

232
00:14:25,850 --> 00:14:27,100
Q was 30.

233
00:14:27,500 --> 00:14:30,130
So if add this line, you reprint the value of it.

234
00:14:30,190 --> 00:14:33,230
So the output will be 30.

235
00:14:33,920 --> 00:14:34,200
OK.

236
00:14:34,430 --> 00:14:38,660
So in this question, we now have three ways to access the same memory.

237
00:14:38,930 --> 00:14:39,890
So this is a.

238
00:14:41,870 --> 00:14:48,110
Pointer BTR is pointing towards this and Pointer Gill is also pointing towards this memory location.

239
00:14:48,620 --> 00:14:48,930
OK.

240
00:14:49,430 --> 00:14:50,930
So let us even more question.

241
00:14:53,230 --> 00:14:55,790
So we have to predict its output.

242
00:14:56,380 --> 00:15:00,370
Again, you can again you can post the video if you want to take some time.

243
00:15:00,900 --> 00:15:02,140
Now let's see the solution.

244
00:15:05,190 --> 00:15:06,750
So end equals 50.

245
00:15:06,840 --> 00:15:07,150
OK.

246
00:15:08,010 --> 00:15:11,750
This is a this is 50 and let's say it addresses seven and.

247
00:15:12,790 --> 00:15:18,580
OK, so make a point that P.D.A, this point, WDR, is pointing towards this.

248
00:15:19,600 --> 00:15:26,710
And so this is BTR site seven hundred and let's say it's memory vs. 800.

249
00:15:28,210 --> 00:15:31,140
Did a fence be so good to go here?

250
00:15:32,870 --> 00:15:38,000
S plus, increase the value, it will become 51 C out A.

251
00:15:38,430 --> 00:15:42,100
So if you will see our day after will be 51.

252
00:15:42,750 --> 00:15:47,430
But headline number eight, Malverde will be 50 because it is post increment.

253
00:15:47,970 --> 00:15:56,280
So in Naples, 50 C out A plus plus and C out A.

254
00:15:56,790 --> 00:15:59,850
So at this line my output will be 50.

255
00:15:59,970 --> 00:16:03,810
But at this lane my output will be 51 because this is post increment.

256
00:16:04,650 --> 00:16:05,850
This is post increment.

257
00:16:06,180 --> 00:16:07,950
And same is happening here.

258
00:16:08,370 --> 00:16:11,610
Start with the edit is actually nothing but a only.

259
00:16:13,080 --> 00:16:15,840
Okay, so I will go towards this memory location.

260
00:16:15,900 --> 00:16:21,450
I will increase its value, but before increasing its value, I will print C out BTR.

261
00:16:22,530 --> 00:16:28,380
This line, this statement will be executed first and then the value of it will be incremented.

262
00:16:28,670 --> 00:16:31,770
So now output will be 50 and 51.

263
00:16:34,250 --> 00:16:35,350
Fifty and fifty one.

264
00:16:38,030 --> 00:16:39,930
So let's give in lane here.

265
00:16:46,370 --> 00:16:48,200
So 50 and 51.

266
00:16:48,810 --> 00:16:49,050
OK.

267
00:16:50,370 --> 00:16:54,390
So now let us discuss the last topic of today's class.

268
00:16:59,810 --> 00:17:03,880
So try to focus on the right to focus on this line.

269
00:17:04,340 --> 00:17:08,180
Never did a fence and he got a big address.

270
00:17:08,780 --> 00:17:11,810
So we will always initialize our point or do not.

271
00:17:12,710 --> 00:17:13,970
So this is a very big line.

272
00:17:14,060 --> 00:17:16,280
Let's try to understand what is the meaning of this line.

273
00:17:17,180 --> 00:17:19,880
Okay, so tell me what will happen if I do.

274
00:17:21,500 --> 00:17:22,160
Entergy.

275
00:17:23,920 --> 00:17:29,950
See, algae, Waterloo output, some output will be a guy Habichuela.

276
00:17:30,570 --> 00:17:31,550
I've got a vision, Deja.

277
00:17:34,150 --> 00:17:34,420
OK.

278
00:17:34,950 --> 00:17:42,420
So now tell me what will happen if I try and do and start B?

279
00:17:45,280 --> 00:17:46,070
See, outby.

280
00:17:46,790 --> 00:17:47,600
So what will happen?

281
00:17:48,470 --> 00:17:50,120
I've got a major will we entered.

282
00:17:51,670 --> 00:17:55,320
I've got a bit this will be printed.

283
00:17:55,700 --> 00:17:57,140
OK, no doubt below.

284
00:17:58,560 --> 00:17:59,850
Now, what will happen?

285
00:18:00,920 --> 00:18:06,230
If I do build a fence, be it was, let's say, 50.

286
00:18:07,440 --> 00:18:08,400
So what will happen?

287
00:18:08,970 --> 00:18:14,250
And in the next lane, fired prior to print, the value of B, B defense.

288
00:18:14,280 --> 00:18:14,520
B.

289
00:18:16,440 --> 00:18:17,340
So what will happen?

290
00:18:19,470 --> 00:18:19,920
Let's see.

291
00:18:20,310 --> 00:18:21,150
So venue.

292
00:18:21,260 --> 00:18:22,070
Dude, venue.

293
00:18:22,080 --> 00:18:22,360
All right.

294
00:18:22,410 --> 00:18:23,490
This line, what will happen?

295
00:18:24,180 --> 00:18:27,900
This is a point B and distorting a garbage at this.

296
00:18:29,510 --> 00:18:30,920
No outline, no, this.

297
00:18:31,510 --> 00:18:32,630
What I am trying to do.

298
00:18:33,110 --> 00:18:34,910
Go through that garbage address.

299
00:18:35,820 --> 00:18:36,830
Go to the garbage.

300
00:18:36,890 --> 00:18:40,640
This dead garbage memory location and write 50 dear.

301
00:18:41,880 --> 00:18:42,140
OK.

302
00:18:42,460 --> 00:18:48,990
This is very scary for entropy is containing a garbage address.

303
00:18:50,170 --> 00:18:56,170
And what we are trying to do at this line go to get the garbage address and relative to the.

304
00:18:57,120 --> 00:18:58,470
But this is very scary.

305
00:18:58,840 --> 00:19:01,910
This memory, this address doesn't belong to us.

306
00:19:03,890 --> 00:19:06,050
This might be a protected memory.

307
00:19:08,990 --> 00:19:10,220
This might be Rome.

308
00:19:11,710 --> 00:19:12,950
So what I'm trying to do.

309
00:19:13,280 --> 00:19:14,960
Go to that garbage location.

310
00:19:15,080 --> 00:19:17,620
Go to the garbage address and drive 50 there.

311
00:19:19,040 --> 00:19:20,450
So this is very, very scary.

312
00:19:20,950 --> 00:19:22,040
You should not do it.

313
00:19:22,160 --> 00:19:23,130
We should never do it.

314
00:19:24,240 --> 00:19:24,460
OK.

315
00:19:25,460 --> 00:19:32,210
So what we will do, so we will always we will always initialise.

316
00:19:32,660 --> 00:19:36,200
We will always initialize our point or do none.

317
00:19:40,050 --> 00:19:48,260
So then I will create my pointer in Star P and the next line if I want to do this.

318
00:19:49,290 --> 00:19:51,180
So we should never do this.

319
00:19:52,080 --> 00:19:53,170
I've explained before.

320
00:19:53,730 --> 00:19:54,580
So what do we do?

321
00:19:55,580 --> 00:19:59,960
As soon as you create the pointer, either give it some ideas.

322
00:20:00,950 --> 00:20:07,790
So option number one, they're given some address and option number two is if you don't know what is

323
00:20:07,790 --> 00:20:09,170
their district desperately want to give.

324
00:20:10,150 --> 00:20:11,600
To initialise it with an.

325
00:20:13,100 --> 00:20:20,540
So meaning of this line is there is a point or B and this point B is pointing towards nothing.

326
00:20:21,470 --> 00:20:23,550
This point is pointing towards nothing.

327
00:20:23,930 --> 00:20:25,280
So if in the next lane.

328
00:20:26,780 --> 00:20:27,770
They will do this.

329
00:20:28,370 --> 00:20:29,210
It will give us added.

330
00:20:30,320 --> 00:20:32,420
It will give us at it our system will crash.

331
00:20:33,560 --> 00:20:35,150
Basically, what is the meaning of this line?

332
00:20:36,500 --> 00:20:39,110
Go to hell and write 50, dear.

333
00:20:39,980 --> 00:20:40,790
Very strange.

334
00:20:41,150 --> 00:20:43,460
So this will give us at it.

335
00:20:43,610 --> 00:20:45,110
And our system will crash.

336
00:20:45,650 --> 00:20:47,540
And I want our system to crash.

337
00:20:47,570 --> 00:20:49,050
We want our system to crash.

338
00:20:49,100 --> 00:20:51,560
Because I am doing a very stupid thing.

339
00:20:52,430 --> 00:20:59,260
If I do some stupidity, then I must get out of a crash.

340
00:20:59,340 --> 00:21:02,500
Must appear segmentation fault must be dear.

341
00:21:03,480 --> 00:21:03,750
OK.

342
00:21:04,130 --> 00:21:07,210
So that is the reason we will always initialize our Lapoint of.

343
00:21:08,800 --> 00:21:09,070
Okay.

344
00:21:09,350 --> 00:21:12,470
So if you will not initialize our pointer with what will happen.

345
00:21:13,400 --> 00:21:16,380
So here I was not initializing my point provisional.

346
00:21:17,750 --> 00:21:18,950
So anything can happen.

347
00:21:19,420 --> 00:21:19,690
Okay.

348
00:21:20,030 --> 00:21:25,190
So but if I really initialize my point of it then I will get an error.

349
00:21:25,970 --> 00:21:26,810
I will get an error.

350
00:21:26,840 --> 00:21:28,010
Our system will crash.

351
00:21:28,490 --> 00:21:30,020
Then I will come to understand.

352
00:21:30,230 --> 00:21:32,450
All I did some stupidity.

353
00:21:33,560 --> 00:21:33,750
OK.

354
00:21:34,360 --> 00:21:35,560
So let's write code.

355
00:21:49,160 --> 00:21:55,490
So suppose Entergy see LG, what will happen?

356
00:21:55,580 --> 00:21:57,560
I've got a bagian deja will get printed

357
00:22:01,100 --> 00:22:06,350
and Appointer, which is containing garbagey orders if you will print.

358
00:22:06,450 --> 00:22:07,790
B, what will happen?

359
00:22:08,360 --> 00:22:09,000
I've got a major.

360
00:22:09,020 --> 00:22:10,220
This will get printed.

361
00:22:11,030 --> 00:22:11,300
OK.

362
00:22:12,080 --> 00:22:12,830
So let's see.

363
00:22:16,440 --> 00:22:20,130
So random garbage in danger and a garbage at this.

364
00:22:21,580 --> 00:22:26,190
So what I told you, we will always initialize our pointer with null.

365
00:22:26,760 --> 00:22:28,630
So initialize our point provisionally.

366
00:22:30,340 --> 00:22:37,760
Now, if in the next line I will if I will change the value of being if I am the referencing B.

367
00:22:38,500 --> 00:22:39,820
Our system will crash.

368
00:22:39,910 --> 00:22:41,410
There will be segmentation void.

369
00:22:47,320 --> 00:22:52,300
Sally's system got crashed and something and it has caught appeared beard.

370
00:22:53,250 --> 00:22:56,440
OK, so this is this segmentation for Dinamo Gold.

371
00:22:56,740 --> 00:22:59,680
OK, so I hope now you know the meaning of this line.

372
00:23:00,790 --> 00:23:04,080
Never did a fence and a garbage address.

373
00:23:04,660 --> 00:23:08,620
So always initialize your pointer to null.

374
00:23:11,130 --> 00:23:13,720
OK, so this is it for this video.

375
00:23:13,780 --> 00:23:15,550
If you have any doubt, feel free to ask.

376
00:23:15,610 --> 00:23:16,120
Thank you.
