1
00:00:02,480 --> 00:00:03,140
Hi everyone.

2
00:00:03,140 --> 00:00:07,420
So in this video we are going to study about dysfunction seen dark kettling.

3
00:00:07,550 --> 00:00:14,600
But before starting discussing about dysfunction let us discuss about something else if you create a

4
00:00:14,600 --> 00:00:22,680
correct area let's say of size food and if you will write C in input.

5
00:00:22,830 --> 00:00:26,520
So what is the maximum number of characters that you can take as input.

6
00:00:26,520 --> 00:00:36,460
So the size of my end is actually for so 0 1 2 and 3 0 2 3 and 6.

7
00:00:36,460 --> 00:00:40,340
So my question is what is the maximum number of critic best that you can store here.

8
00:00:40,370 --> 00:00:42,150
So can you store ABC.

9
00:00:42,400 --> 00:00:47,860
No you cannot store ABC TV because the last character has to be another character so the maximum number

10
00:00:47,860 --> 00:00:53,250
of predictors that you can store is actually three only because the last character has to be an electric

11
00:00:53,250 --> 00:00:53,730
bill.

12
00:00:53,830 --> 00:00:54,840
So it cannot story.

13
00:00:54,840 --> 00:00:56,490
Basically can you at ABC.

14
00:00:56,500 --> 00:00:57,140
Yes.

15
00:00:57,280 --> 00:00:58,190
Can you still Amy.

16
00:00:58,210 --> 00:00:58,660
Yes.

17
00:00:58,660 --> 00:00:59,530
In your story.

18
00:00:59,590 --> 00:01:00,010
Yes.

19
00:01:00,460 --> 00:01:05,890
So the maximum characters that you can story is actually three because the last character has to be

20
00:01:05,920 --> 00:01:06,540
another character.

21
00:01:06,550 --> 00:01:09,170
So there should be space within them character.

22
00:01:09,170 --> 00:01:11,310
No this is not the case for the DADT.

23
00:01:11,590 --> 00:01:17,920
If you are creating an endangered area of size forward then what will happen then you can store food

24
00:01:17,950 --> 00:01:22,520
and be just 0 1 2 and 3 so you can store food and deejays.

25
00:01:22,570 --> 00:01:28,190
So basically if you are creating an immediate area of size and then what will happen.

26
00:01:28,210 --> 00:01:34,960
You can store at the max and characters and in B just Saudi you can store and indeed yes but this is

27
00:01:34,960 --> 00:01:37,070
not the case with the correct baddies.

28
00:01:37,300 --> 00:01:43,340
If you are creating iconic Barry correct Barry of size and then the maximum number of critic best doing

29
00:01:43,360 --> 00:01:50,630
a story is actually N minus one because the last guy is going to be a null character symbol.

30
00:01:50,650 --> 00:01:59,820
Now what if you do not follow this for example you are creating you are creating input edit you are

31
00:01:59,890 --> 00:02:09,070
creating a character Eddie I'll size 4 and then you are taking input so see in input and let's say you

32
00:02:09,070 --> 00:02:12,620
give ABC TV you are giving ABC.

33
00:02:13,900 --> 00:02:22,000
So this is the situation of it and put Eddie is president here to be president is present day and these

34
00:02:22,010 --> 00:02:23,280
presented here.

35
00:02:23,520 --> 00:02:29,020
So you see in function will look perfectly fine this scene is going to look perfectly fine but if he

36
00:02:29,020 --> 00:02:31,220
will try to print the content of it.

37
00:02:31,230 --> 00:02:36,300
Eddie so if you will try and print scene input if you will try and do this.

38
00:02:36,300 --> 00:02:39,830
So what will happen so see out has a very standard property.

39
00:02:39,830 --> 00:02:41,520
It will go to the foster nicks.

40
00:02:41,640 --> 00:02:44,450
It will go to the first character it will print a.

41
00:02:44,710 --> 00:02:53,790
Then it will print be then it will print C then it will bank de so it has not encountered Elliott.

42
00:02:53,820 --> 00:02:57,520
So what it will do it will bring the content present at.

43
00:02:57,540 --> 00:03:01,160
So this is index for 0 1 2 3.

44
00:03:01,290 --> 00:03:06,270
So it will print what I would do as president I draw next food then whatever is present at the next

45
00:03:06,270 --> 00:03:08,060
five and so on.

46
00:03:08,100 --> 00:03:14,640
So it will start printing everything until my see out the lot and counting then.

47
00:03:14,760 --> 00:03:21,900
So it will print everything and the problem with this is basically so this memory is not ours.

48
00:03:21,970 --> 00:03:24,520
This memory doesn't belong to our program.

49
00:03:24,580 --> 00:03:25,560
So what can happen.

50
00:03:25,570 --> 00:03:27,800
Our program may or may not crash.

51
00:03:27,880 --> 00:03:31,150
So if this is a very critical memory then why did it happen.

52
00:03:31,150 --> 00:03:37,770
Your program may crash or may not crash but we should never do this.

53
00:03:38,240 --> 00:03:39,620
We will never do this.

54
00:03:39,620 --> 00:03:44,780
So if the size of your input that is actually forward then the maximum character that you are going

55
00:03:44,780 --> 00:03:49,970
to store is actually t only so you will not give in would like this.

56
00:03:49,970 --> 00:03:55,400
So that is the limitation of you at the scene function so using function basically can take anything

57
00:03:55,400 --> 00:03:59,430
as input so that is the limitation of your scene.

58
00:03:59,510 --> 00:04:01,880
So that's why we need this function scene.

59
00:04:01,910 --> 00:04:03,240
Good line.

60
00:04:03,530 --> 00:04:07,930
Now before seeing not good line so apart from this limitation.

61
00:04:08,120 --> 00:04:14,910
So the one limitation that we have already seen is this one basically you can give any string and it

62
00:04:15,060 --> 00:04:20,900
can act as input and in a combination of characters input and it will basically store that characters.

63
00:04:21,410 --> 00:04:22,640
So this is the first limitation.

64
00:04:22,670 --> 00:04:25,380
Now let's discuss the second limitation.

65
00:04:25,490 --> 00:04:28,710
So the second limitation for scene is basically.

66
00:04:28,970 --> 00:04:38,320
So let's say you are creating a input Eddie let's say of six hundred and then basically if you will

67
00:04:38,320 --> 00:04:45,400
take scene input and you are doing see out CO2 input scene input into out output.

68
00:04:45,790 --> 00:04:54,780
So let's say my input I'm giving input Hello space world so I live what should be my output.

69
00:04:54,820 --> 00:05:02,180
So I live should see old print those she out should print Hello World but let's see what it will print.

70
00:05:02,410 --> 00:05:04,000
It is not going to print Hello World.

71
00:05:05,230 --> 00:05:13,540
So what I want to say so I am creating this idea enter your name see in name and then I'm c out and

72
00:05:13,960 --> 00:05:15,520
let us comment this land function

73
00:05:18,570 --> 00:05:27,080
so let's see if you will give input Hallowell then what will be our output so I am giving Hello space

74
00:05:31,510 --> 00:05:37,690
hello world so malpractice coming out to be held only so your name is Hello why it is so so this is

75
00:05:37,690 --> 00:05:46,330
the second limitation of seen so it is a limitation so let's see so you are creating name Eddie and

76
00:05:48,010 --> 00:05:56,240
the first index zero and the last index is actually 99 and you are taking input Hello space well so

77
00:05:56,240 --> 00:05:57,300
this is Hello.

78
00:05:57,470 --> 00:06:04,970
H E N N O then space then word.

79
00:06:05,110 --> 00:06:13,030
This is what we expect but the scene property is so scene will stop taking input as soon as it encounters

80
00:06:13,030 --> 00:06:21,330
spaces or tabs Arnold corrected sorry not not corrected.

81
00:06:21,390 --> 00:06:23,340
So new line.

82
00:06:23,340 --> 00:06:27,240
So again I'm repeating myself the property you've seen is very simple.

83
00:06:27,260 --> 00:06:35,960
Scene will stop taking in but as soon as it will encounter spaces or tabs or new line so here.

84
00:06:36,020 --> 00:06:36,610
Hello.

85
00:06:36,620 --> 00:06:38,540
And then you are giving space.

86
00:06:38,540 --> 00:06:43,880
So basically it will not take input after the space including space also.

87
00:06:43,880 --> 00:06:51,040
So basically basically your name correct there is only string Hello it is only storing hello and then

88
00:06:51,050 --> 00:06:58,110
Dino corrected so that's why when you're trying to seek out your connectivity then hello is getting

89
00:06:58,110 --> 00:06:58,760
printed.

90
00:07:00,100 --> 00:07:00,780
Simple.

91
00:07:01,030 --> 00:07:10,650
So I may be myself but what is happening here so the second limitation I've seen is actually so the

92
00:07:10,650 --> 00:07:13,980
second limitation I've seen is very simple.

93
00:07:13,980 --> 00:07:25,100
It will stop taking in but as soon as it will encounter spaces or tabs or a new line so this is new

94
00:07:25,100 --> 00:07:32,750
line and in our case what we are doing we are giving in Portillo then space so it don't happen scene

95
00:07:32,760 --> 00:07:37,870
will stop at this point saying it will stop at this point and basically Hello.

96
00:07:38,400 --> 00:07:39,700
And then null corrected.

97
00:07:39,720 --> 00:07:41,920
So this will be your situation.

98
00:07:42,000 --> 00:07:43,320
So this is my input idea.

99
00:07:43,350 --> 00:07:44,610
So this is your input today.

100
00:07:45,120 --> 00:07:50,150
And when you are trying to print the content of your input that is or what she will do it will burn

101
00:07:50,180 --> 00:07:53,190
Halo and then it will end golden then that's where it will stop.

102
00:07:53,220 --> 00:07:57,720
So that's why the output of Hallowell is only Hello.

103
00:07:58,180 --> 00:08:01,880
So this is the second limitation of C in.

104
00:08:02,250 --> 00:08:06,780
And both these limitation can be solved with the help of C not good line.

105
00:08:08,160 --> 00:08:15,220
So now we will discuss seemed good guideline and we will see how C and or good land will help us so

106
00:08:15,230 --> 00:08:16,310
C not get laid.

107
00:08:16,350 --> 00:08:21,200
So this is inbuilt function C in.

108
00:08:21,230 --> 00:08:26,710
Get lane so actually it takes two things as input.

109
00:08:27,070 --> 00:08:29,060
So a first is basically the string name.

110
00:08:29,080 --> 00:08:31,550
All we can say the name of Deckard Barry.

111
00:08:31,570 --> 00:08:33,630
The second thing is basically the land.

112
00:08:33,640 --> 00:08:36,730
How many characters you want to take as input.

113
00:08:36,880 --> 00:08:38,290
And the third parameter.

114
00:08:38,410 --> 00:08:39,930
So it takes with us.

115
00:08:39,940 --> 00:08:42,230
And the third department is actually optional.

116
00:08:42,760 --> 00:08:48,870
So we will discuss about the third about a meter also but first let us discuss the first two barometers.

117
00:08:49,090 --> 00:08:54,620
What I will do I will write C and not guideline input Eddie.

118
00:08:54,640 --> 00:08:56,820
So this is the name I have created.

119
00:08:56,860 --> 00:09:04,120
I input edit above and the size was handed so what is the maximum number of practice that I can insert.

120
00:09:04,130 --> 00:09:09,960
So they mix in a move quick this I can insert is actually 99 because the last one is going to be null.

121
00:09:10,160 --> 00:09:15,880
So you will write hundred head so a hundred signifies you can insert the mix.

122
00:09:15,920 --> 00:09:18,470
You can take and put the max in 99 characters.

123
00:09:18,530 --> 00:09:23,580
You can not take note as input because the last character is going to be the simple.

124
00:09:23,580 --> 00:09:26,720
So let's use c not good line in our program

125
00:09:31,320 --> 00:09:33,890
so here instead of scene name what I will do.

126
00:09:35,790 --> 00:09:37,710
Scene dart get Lane

127
00:09:41,160 --> 00:09:45,360
It takes two argument name and the second one is the mix in the metaphoric does allow.

128
00:09:45,390 --> 00:09:49,070
So the mixing effect as allowed is handed out of under.

129
00:09:49,080 --> 00:09:54,890
You can take ninety nine as input and 1 connect is going to be reserved for the null character.

130
00:09:54,900 --> 00:09:58,920
Now if you will give Hallowell as input so the output when we Hallowell only

131
00:10:03,180 --> 00:10:07,600
so my name is lowered space.

132
00:10:07,700 --> 00:10:15,060
Hello space world and see that would produce Hallowell so that's how we see node get Lane is better

133
00:10:15,080 --> 00:10:17,760
then seen now.

134
00:10:17,790 --> 00:10:24,440
It seemed not good Lane does differently what was the problem with the scene.

135
00:10:24,510 --> 00:10:27,900
This was the problem for the scene for Hallowell.

136
00:10:28,950 --> 00:10:32,130
And what scene or Gatland do so.

137
00:10:32,130 --> 00:10:32,830
Scene.

138
00:10:32,850 --> 00:10:38,580
Good line will stop taking input as soon as you will reach the character.

139
00:10:38,580 --> 00:10:41,090
Basically the new Lincoln decided not man.

140
00:10:41,310 --> 00:10:42,700
Please forgive me.

141
00:10:42,700 --> 00:10:48,570
So as soon as the scene or Gatland encounters the night quite a bit it will stop taking input.

142
00:10:49,260 --> 00:10:52,290
So that means hello while it can be stored.

143
00:10:52,290 --> 00:11:01,300
So if you will go and put hello world so how I will give input I will write Hello then space then world

144
00:11:01,360 --> 00:11:02,820
and then I will press enter.

145
00:11:03,160 --> 00:11:10,770
So Hallowell will get stored in your head and put Barry along with Dino correct then obviously like

146
00:11:10,920 --> 00:11:12,910
has to wait so along with an uncorrected.

147
00:11:13,080 --> 00:11:18,120
So that's how we seem to get Lane rulebook because it will only stop ticking and put as soon as you

148
00:11:18,120 --> 00:11:20,850
will enter the market Edison as you will enter the new lane.

149
00:11:20,850 --> 00:11:22,330
Corrected.

150
00:11:22,430 --> 00:11:30,830
So this is how the scene don't get Lane will help us in making this type of input spaces the input in

151
00:11:30,830 --> 00:11:34,580
which we have spaces or we can also have multiple spaces.

152
00:11:34,580 --> 00:11:41,610
Now let's say now the first limitation I've seen was it can't take anything as input.

153
00:11:41,610 --> 00:11:48,890
So for example if I'm creating a kind of battery of size 10 so again that makes a number of characters

154
00:11:49,250 --> 00:11:56,110
that I can take as input is 9 only because the last one is going to be reserved for the next character.

155
00:11:56,120 --> 00:12:01,510
So if I will write C and I'd get Lane I have to pass two things first.

156
00:12:01,550 --> 00:12:03,290
The name of the correct baddie and second.

157
00:12:03,320 --> 00:12:05,350
The makes him correct this allowed.

158
00:12:05,420 --> 00:12:06,410
So this is correct.

159
00:12:08,140 --> 00:12:10,510
Now if you will write C not good lane

160
00:12:13,380 --> 00:12:14,580
then no that is E.

161
00:12:14,610 --> 00:12:18,600
So this one e only and the maximum number of quickness allowed is food.

162
00:12:18,600 --> 00:12:19,830
So what will happen.

163
00:12:19,830 --> 00:12:26,190
So in this scenario we can add to Max city 9 characters because the last one is going to be for the

164
00:12:26,190 --> 00:12:26,860
number one.

165
00:12:27,060 --> 00:12:32,520
And in this case at max I can read only three characters because the last one is going to be saved for

166
00:12:32,520 --> 00:12:33,910
the main character.

167
00:12:34,350 --> 00:12:37,560
So let's test this thing.

168
00:12:37,560 --> 00:12:40,740
I will create an eddy of size so size doesn't matter.

169
00:12:40,920 --> 00:12:44,430
This thing my dad so if I would give Dane Patel a while.

170
00:12:44,970 --> 00:12:46,740
Let's say I'm giving Dane Patel a world.

171
00:12:46,790 --> 00:12:52,760
So one thing is very clear saying not good line can easily do this and put this type of input but due

172
00:12:52,760 --> 00:12:55,090
to this food what will happen.

173
00:12:55,190 --> 00:12:57,750
It will read I have to I can only read to correct.

174
00:12:57,770 --> 00:13:01,070
So it will read etch into will read e it will read.

175
00:13:01,110 --> 00:13:08,630
And so h e l and then it will automatically put the electric bill because the mixing of characters is

176
00:13:08,630 --> 00:13:09,590
only four.

177
00:13:09,650 --> 00:13:16,140
So if we would give this input then seen that get will convert it into this one and if it required to

178
00:13:16,140 --> 00:13:23,800
print the content of the array the output is going to be h e l only so do not believe me I will write

179
00:13:23,800 --> 00:13:24,220
the code

180
00:13:27,420 --> 00:13:34,400
so I'm creating an area of this size and lets say the maximum number of characters allowed is only four.

181
00:13:34,650 --> 00:13:41,170
So that means I will read only three characters and I'm giving input as Hello Wade

182
00:13:43,940 --> 00:13:49,940
Hello space word so again the output is only h e l only three characters

183
00:13:52,880 --> 00:13:56,440
you can't see because the mixing and like this is only food.

184
00:13:56,510 --> 00:14:04,700
So this tree and bless one due to 9/11 due to not connected so that's how C not get is much better then

185
00:14:04,700 --> 00:14:05,700
seen.

186
00:14:05,750 --> 00:14:07,320
So both the two limitations.

187
00:14:07,460 --> 00:14:13,780
So this first limitation I've seen that you can give anything as input ABC so you can also give a b

188
00:14:13,810 --> 00:14:20,150
c d e f g you can give anything as input and even if the size of the ad is only fold.

189
00:14:20,240 --> 00:14:26,420
So this was the first limitation of seen and the second limitation was this one that it cannot take

190
00:14:26,570 --> 00:14:27,980
this kind of input.

191
00:14:28,280 --> 00:14:37,480
This type of input so let's say an old guideline is much better than C in now one more thing so senior

192
00:14:37,560 --> 00:14:38,190
get Lane.

193
00:14:38,210 --> 00:14:45,810
For example if you are creating an eddy of size 10 and if you will right.

194
00:14:45,850 --> 00:14:46,370
See.

195
00:14:46,500 --> 00:14:50,100
Kathleen.

196
00:14:50,160 --> 00:14:50,710
And then.

197
00:14:50,740 --> 00:14:52,470
So this is fine.

198
00:14:52,600 --> 00:14:53,240
That makes sense.

199
00:14:53,260 --> 00:14:56,890
It does allow distance and then and the size of the ad is all certain.

200
00:14:56,890 --> 00:14:58,360
So this is correct.

201
00:14:58,360 --> 00:15:00,910
But if you will write C indoor good lane

202
00:15:05,270 --> 00:15:10,430
e and the mixing of classic business hundred if you will write like this then this is wrong because

203
00:15:10,430 --> 00:15:12,680
the size of your ad is actually 10 only.

204
00:15:12,680 --> 00:15:14,850
So how can you store 200 characters.

205
00:15:14,930 --> 00:15:15,820
So this is wrong.

206
00:15:18,290 --> 00:15:25,340
Now we'll discuss that scene not get line takes three barometers so we discussed that the third about

207
00:15:25,340 --> 00:15:27,690
M is optional with that.

208
00:15:28,000 --> 00:15:34,150
Now let us discuss about that optionally barometer and just remember this property that seemed a good

209
00:15:34,150 --> 00:15:38,530
time to stop digging and put as soon as that it will encompass the new line.

210
00:15:38,530 --> 00:15:38,980
Correct.

211
00:15:39,880 --> 00:15:45,800
So actually the third about that the barometer which is option at least the dealing with that connected

212
00:15:46,540 --> 00:15:49,420
so seen not good line.

213
00:15:49,750 --> 00:15:51,520
The first barometer is way too simple.

214
00:15:51,550 --> 00:15:58,320
String name or you can say the name of your correct baddy the second part parameter it is actually the

215
00:15:58,320 --> 00:15:59,360
land.

216
00:15:59,730 --> 00:16:02,040
And the third about Ember is actually are delimited

217
00:16:04,730 --> 00:16:14,240
so this delimiter is actually a architected and by default this character is my new line corrected by

218
00:16:14,240 --> 00:16:14,680
default.

219
00:16:14,690 --> 00:16:19,410
This delimiter character is actually the new line connected.

220
00:16:19,490 --> 00:16:22,340
So this dealing with debt all we can say the breaking point.

221
00:16:24,660 --> 00:16:28,350
So what did I told you above that if you will give the input Hallowell

222
00:16:32,090 --> 00:16:37,820
so senior your claim can read everything but after giving the input Hallowell you will press enter.

223
00:16:38,390 --> 00:16:41,750
So as soon as you press enter what is my deal with that character by default.

224
00:16:41,750 --> 00:16:43,980
So by default it is new line.

225
00:16:44,030 --> 00:16:46,160
So this entered is actually a new name.

226
00:16:46,190 --> 00:16:51,880
So as soon as you print that as soon as you will pass and that so same get lame will stop taking input.

227
00:16:51,890 --> 00:16:57,140
So that is the braking condition seemed to get Lane will stop taking and put and this will be your input

228
00:16:57,230 --> 00:16:58,050
Hallowell.

229
00:16:58,250 --> 00:17:01,140
And obviously you will attach the null corrected.

230
00:17:01,160 --> 00:17:02,580
So this is the third correct.

231
00:17:02,600 --> 00:17:05,450
This is the third parameter which is optional.

232
00:17:05,450 --> 00:17:08,010
So by default if you will not give the third character.

233
00:17:08,330 --> 00:17:11,060
This is going to be the new line connected.

234
00:17:11,060 --> 00:17:14,250
Now what if I want to give the third connected.

235
00:17:14,420 --> 00:17:18,980
So for example what if I want to write C and not get line.

236
00:17:19,400 --> 00:17:26,840
Let's say the name of our arrays input name of character that is input and let's say its size is hundred

237
00:17:27,470 --> 00:17:30,090
and let's say the third character dealing with that correct base.

238
00:17:30,160 --> 00:17:31,060
Oh.

239
00:17:31,230 --> 00:17:33,460
So what will happen to this is all.

240
00:17:33,800 --> 00:17:37,040
So if you will give this input what will happen.

241
00:17:37,130 --> 00:17:40,350
Edge is valid is valid and is valid and less valid.

242
00:17:40,350 --> 00:17:44,700
All C or so it will stop it will stop.

243
00:17:44,720 --> 00:17:48,070
And what do we are input so your input will be actually less less.

244
00:17:48,110 --> 00:17:50,270
And obviously the null corrected.

245
00:17:50,270 --> 00:17:52,980
So this will be your input.

246
00:17:53,040 --> 00:17:56,640
So this is the use of the third parameter so let's see

247
00:18:01,310 --> 00:18:03,620
so I am creating an ideal size ended.

248
00:18:03,620 --> 00:18:08,810
So let's give hundred and the third about a meter which is by default a new length corrected.

249
00:18:09,200 --> 00:18:15,770
Let's say the third about M days only 0 and now I will give the input Hallowell

250
00:18:18,620 --> 00:18:24,230
so I want to give them input Hello space world.

251
00:18:24,310 --> 00:18:29,750
So what will happen my output will be s e l l only so this is my output.

252
00:18:29,850 --> 00:18:37,020
S e n because as soon as it will encounter this all correct but you can see the condition big at all.

253
00:18:37,120 --> 00:18:41,860
So that's why we will only store the first folk as the characters before the character.

254
00:18:42,100 --> 00:18:46,570
So that's why it's e l will get stood.

255
00:18:46,790 --> 00:18:52,370
So I think the C and or good line function is now clear to you and how you can use C and or get main

256
00:18:52,370 --> 00:19:00,920
function so in the next five to do us we will solve some question I will who did Bye bye.
