1 00:00:00,540 --> 00:00:02,610 In this video, we'll be talking about the areas. 2 00:00:02,820 --> 00:00:12,870 So it is are you going to store similar data in in Britain and is considered multiple times on today. 3 00:00:13,320 --> 00:00:23,010 So it is think of it as your market if you want to store all of your marks in one area, need rest so 4 00:00:23,190 --> 00:00:25,110 that can be added. 5 00:00:26,100 --> 00:00:26,970 So let's go. 6 00:00:26,970 --> 00:00:29,000 And there it is. 7 00:00:29,250 --> 00:00:34,860 So declaration is not normally going to be easy to find. 8 00:00:35,160 --> 00:00:37,770 It is integration of not being beta variable. 9 00:00:38,580 --> 00:00:43,840 So due to the pain of this as an intermediary, we need to put these square brackets. 10 00:00:45,270 --> 00:00:50,910 Now we need to be some size for this new enough. 11 00:00:52,560 --> 00:00:54,300 Order to fire elements. 12 00:00:56,820 --> 00:01:02,310 And you can also declare these elements here to become law. 13 00:01:04,090 --> 00:01:04,650 Then come on. 14 00:01:04,740 --> 00:01:05,910 30, 40. 15 00:01:08,460 --> 00:01:13,650 So now this is an integer array with the five elements, and those elements are these numbers. 16 00:01:14,070 --> 00:01:19,260 Now if you want to access these, you can access using card index. 17 00:01:19,500 --> 00:01:26,730 So the first element gets the index zero and the second element gets the index one and so on zero, 18 00:01:26,730 --> 00:01:28,560 one, two, three, four. 19 00:01:29,070 --> 00:01:35,280 So for the area of five elements, you get the index from 0 to 4. 20 00:01:35,910 --> 00:01:48,870 So that means four index, four array of index, and we get indexes gyro two and minus one. 21 00:01:50,130 --> 00:01:54,150 So because these arrays will be stored in memory. 22 00:01:54,180 --> 00:02:02,490 So if you want to access your own thing, you can you can see the offset is zero. 23 00:02:02,730 --> 00:02:05,160 Suppose you were standing on the. 24 00:02:08,270 --> 00:02:12,800 So think of these as you're standing on the road. 25 00:02:12,800 --> 00:02:20,150 And there is, uh, there are a few shops from, from certain distance. 26 00:02:20,510 --> 00:02:30,170 Uh, regulates, uh, uh, for every five meters there is a shop and you want to find the distance from 27 00:02:30,440 --> 00:02:32,240 yours and the shops. 28 00:02:32,630 --> 00:02:36,500 So what is the position of yourself means your position. 29 00:02:37,370 --> 00:02:39,140 So that is your position. 30 00:02:39,150 --> 00:02:44,060 So similarly, uh, the first index will be gyro. 31 00:02:44,060 --> 00:02:49,070 It is referring to itself so we can put into this using. 32 00:02:50,030 --> 00:02:50,360 Yeah. 33 00:02:50,420 --> 00:02:51,290 Of gyro. 34 00:02:51,770 --> 00:02:54,750 So the index can be here. 35 00:02:54,770 --> 00:02:55,420 So you can see. 36 00:02:55,420 --> 00:02:55,670 Yeah. 37 00:02:55,670 --> 00:02:56,360 Of gyro. 38 00:02:56,630 --> 00:02:59,240 So it will go and grab the first element. 39 00:02:59,240 --> 00:03:03,040 And going to put into that you can see the first value gets printed. 40 00:03:03,650 --> 00:03:08,750 And in the same way you can bring the second worry as well, which is 60. 41 00:03:09,530 --> 00:03:12,470 And if you go into a file which does not exist. 42 00:03:12,860 --> 00:03:13,300 Um. 43 00:03:15,000 --> 00:03:21,660 Many will do mistake that this file sizes for you and we can declare the fight to get the Rastaman but 44 00:03:21,660 --> 00:03:23,010 it's gonna try their. 45 00:03:24,260 --> 00:03:32,870 Because index out of an exception because the index is only four and we are given the index that is 46 00:03:32,870 --> 00:03:33,800 out of its range. 47 00:03:36,940 --> 00:03:41,150 That's why what we can do is we can sit here, not relent. 48 00:03:42,100 --> 00:03:51,160 So this goose, the target, is all we can put into this land of release. 49 00:03:53,880 --> 00:03:54,070 Alone. 50 00:03:56,850 --> 00:03:58,830 If you can't run this length of a race fight. 51 00:04:04,870 --> 00:04:05,080 No. 52 00:04:05,080 --> 00:04:05,860 Let's go. 53 00:04:05,860 --> 00:04:12,620 And are printing each and every minute is very, very difficult. 54 00:04:12,640 --> 00:04:17,620 So let's go and use the pharaoh, which we have learned in the previous video to print all of these 55 00:04:17,620 --> 00:04:19,210 values so far. 56 00:04:20,350 --> 00:04:26,500 So the index is of course, of course, starts with the index zero equals zero. 57 00:04:27,070 --> 00:04:29,950 And the what is the limit of this four. 58 00:04:30,220 --> 00:04:34,600 So whenever we reach the ending element, we need to stop. 59 00:04:34,750 --> 00:04:38,590 So how to define the ending element using this array? 60 00:04:39,370 --> 00:04:44,140 So he said this use the ending of this one. 61 00:04:45,830 --> 00:04:49,620 Of course we are using Ellis Island as then Iran. 62 00:04:49,670 --> 00:04:54,660 So whenever I become a spy, this condition gets fade because there is no equal to it. 63 00:04:54,680 --> 00:04:59,420 So that's why we are just printing out this one and we can just I plus press. 64 00:05:03,910 --> 00:05:06,880 Now I go and bring the air of light. 65 00:05:07,210 --> 00:05:10,840 So this this is already next, not the element itself. 66 00:05:11,170 --> 00:05:12,190 So it's going to run this. 67 00:05:12,400 --> 00:05:14,360 And we can see a length of five. 68 00:05:14,710 --> 00:05:16,000 And those five elements. 69 00:05:17,290 --> 00:05:24,010 If you want to skip a few elements like I want to, only that even indexes. 70 00:05:24,190 --> 00:05:27,830 So what you can do is you can also give the expression here. 71 00:05:27,850 --> 00:05:35,500 So I plasmas is basically equal to I press plus use equals to I use equals two. 72 00:05:36,950 --> 00:05:37,670 I press for? 73 00:05:39,210 --> 00:05:43,430 So this, uh, this is the shocker form of this flu form I use. 74 00:05:43,440 --> 00:05:43,710 GROSS. 75 00:05:44,250 --> 00:05:47,020 We are incrementing the value and assigning to decide. 76 00:05:47,460 --> 00:05:49,200 So we can say I use equals to. 77 00:05:52,320 --> 00:05:53,610 I presume so. 78 00:05:53,670 --> 00:06:00,510 This gives you the even in Texas, because we are starting at zero and zero two years of two year four. 79 00:06:01,990 --> 00:06:03,880 So you can see these other indexes. 80 00:06:05,600 --> 00:06:14,060 So many programmers will forget this and they just put this A-plus plus for every time, and they forget 81 00:06:14,060 --> 00:06:16,640 that this can also be modified. 82 00:06:18,080 --> 00:06:20,930 They just implement here like this. 83 00:06:21,110 --> 00:06:27,650 They implement, if I divide it by percentage by two is equal to zero. 84 00:06:27,740 --> 00:06:28,940 So that means we are checking. 85 00:06:29,460 --> 00:06:31,400 The number is divided by two. 86 00:06:31,400 --> 00:06:32,510 Reduce the amount of zero. 87 00:06:32,540 --> 00:06:36,890 That means it is even then printing this actual. 88 00:06:38,710 --> 00:06:40,090 Very UN index. 89 00:06:40,300 --> 00:06:47,980 So this gives you some over the CPU or head because we are taking, uh, extra check for every. 90 00:06:48,520 --> 00:06:53,410 So if there are 100 elements, we are taking one more check for every 100 times. 91 00:06:53,680 --> 00:06:57,610 So instead of this one, you can put the current value as CPU. 92 00:06:57,670 --> 00:07:00,280 So you can even index this. 93 00:07:05,980 --> 00:07:08,110 We can also declare the bait. 94 00:07:08,200 --> 00:07:10,960 It is so by the rabies equals to. 95 00:07:11,500 --> 00:07:15,040 Are you better off to be? 96 00:07:16,710 --> 00:07:19,930 Oh, you can declare the values as well. 97 00:07:19,960 --> 00:07:26,290 But one important tip is you need to clear the bioterror before you assign some other ones. 98 00:07:26,590 --> 00:07:29,480 So we'll be seeing this problem in the future videos. 99 00:07:29,950 --> 00:07:32,530 So what happens is the bioterror. 100 00:07:32,530 --> 00:07:33,040 So that. 101 00:07:36,920 --> 00:07:38,600 That's why there is this one. 102 00:07:44,760 --> 00:07:44,970 So. 103 00:07:44,970 --> 00:07:47,430 Richard, this is my waiter one. 104 00:07:48,870 --> 00:07:51,030 51 degree. 105 00:07:52,310 --> 00:07:54,500 Hundred 120. 106 00:07:56,190 --> 00:07:56,970 And it's a one. 107 00:07:59,290 --> 00:08:02,390 And I wonder. 108 00:08:03,490 --> 00:08:05,920 So this is my values. 109 00:08:06,820 --> 00:08:08,710 Now, what I want to do is. 110 00:08:09,550 --> 00:08:10,510 I want to. 111 00:08:14,650 --> 00:08:18,090 Based is the less Bofors case. 112 00:08:18,100 --> 00:08:21,820 So these elements are one, two, three, four, five, six, seven elements. 113 00:08:23,960 --> 00:08:28,580 If you go and or write this book for this area with eight elements. 114 00:08:29,360 --> 00:08:32,150 So this the eighth payment will be added here. 115 00:08:35,020 --> 00:08:36,320 We will be. 116 00:08:39,640 --> 00:08:40,450 Added here. 117 00:08:40,570 --> 00:08:47,220 So all of these will be replaced by this huge array of buffer. 118 00:08:47,530 --> 00:08:49,030 So what happens when I 119 00:08:51,940 --> 00:08:55,330 copy the lesser bite size into this one? 120 00:08:55,900 --> 00:08:59,170 So of course it's going to hold 20 bytes. 121 00:08:59,440 --> 00:09:03,110 So I'm only copying four, but not four. 122 00:09:03,120 --> 00:09:04,420 It's five. 123 00:09:04,690 --> 00:09:05,200 Six. 124 00:09:07,540 --> 00:09:15,280 So when you know what it's going to happen is these four gets replaced by these four. 125 00:09:16,060 --> 00:09:19,730 So so so these four get replaced by these basic sonic. 126 00:09:20,800 --> 00:09:23,560 And these values do not get zero. 127 00:09:24,010 --> 00:09:27,690 So that is the major problem regarding these providers. 128 00:09:27,700 --> 00:09:30,580 We need to be very careful because this is the radical error. 129 00:09:31,420 --> 00:09:33,700 This is our human made radical error. 130 00:09:33,730 --> 00:09:36,220 So you will be very confusing about this. 131 00:09:36,640 --> 00:09:38,500 And logical errors are the most difficult. 132 00:09:38,770 --> 00:09:43,900 So what you need to do is you need to say, I did not clear. 133 00:09:44,620 --> 00:09:47,950 So these data are of these contents in this error. 134 00:09:48,310 --> 00:09:56,350 So the first parameter is ERA itself, and that is the B comma index from which indexes you want to 135 00:09:56,350 --> 00:09:56,740 clear. 136 00:09:57,400 --> 00:09:58,870 That is from the starting next. 137 00:09:59,140 --> 00:10:04,220 And the limit how many members you want to create that is better. 138 00:10:04,840 --> 00:10:07,600 So I want to create a full error. 139 00:10:08,860 --> 00:10:13,800 So this step is very, very important for dealing with these binaries. 140 00:10:14,950 --> 00:10:19,150 You just place this line before copying any content into this. 141 00:10:24,510 --> 00:10:26,310 So we can also. 142 00:10:29,840 --> 00:10:31,530 They're not in the south. 143 00:10:31,860 --> 00:10:37,920 So you can view the area that is our previous you come up object where you. 144 00:10:39,170 --> 00:10:40,860 To party. 145 00:10:44,650 --> 00:10:50,530 And we can see the index useful so we can use this index of matter to find the index of any element. 146 00:10:52,420 --> 00:10:53,740 So that's over the years. 147 00:10:54,220 --> 00:10:59,530 It is so we can define it like this as well. 148 00:10:59,530 --> 00:11:00,840 And physicals to. 149 00:11:02,380 --> 00:11:02,950 New in. 150 00:11:05,080 --> 00:11:07,930 You can declare the dynamic since. 151 00:11:14,320 --> 00:11:22,960 So these are very helpful when you don't know the signs and you can read this as well continuing of 152 00:11:23,500 --> 00:11:27,550 then and you can declare a saint of our newsletter. 153 00:11:27,700 --> 00:11:29,230 So that's all about this. 154 00:11:29,740 --> 00:11:35,260 It is if we encounter any elements of those videos, the future.