1
00:00:00,730 --> 00:00:02,430
Hey, guys, what's up?

2
00:00:03,100 --> 00:00:13,500
So today we are going to see what is segmentation for, what is segmentation fault or what is run by

3
00:00:13,510 --> 00:00:17,600
matter, run time et al.

4
00:00:18,400 --> 00:00:24,940
For example, you have created an array of size 10 and what you're trying to do.

5
00:00:25,760 --> 00:00:27,740
You are printing the value.

6
00:00:28,490 --> 00:00:29,260
In location.

7
00:00:29,410 --> 00:00:30,970
That's a two thousand.

8
00:00:32,710 --> 00:00:33,580
So what will happen?

9
00:00:35,260 --> 00:00:38,800
So this will give us a runtime at ad or segmentation it.

10
00:00:39,490 --> 00:00:44,860
So segmentation fault means you are trying to access a memory.

11
00:00:45,010 --> 00:00:54,820
You are trying to access memory, which is not yours.

12
00:00:55,840 --> 00:00:56,050
OK.

13
00:00:56,110 --> 00:01:00,120
So you are trying to access a memory which doesn't belong to you.

14
00:01:01,440 --> 00:01:01,670
OK.

15
00:01:01,750 --> 00:01:03,780
You have created an aerial size 10.

16
00:01:04,360 --> 00:01:04,960
Do you want.

17
00:01:05,260 --> 00:01:07,210
What is the value of present day 2000?

18
00:01:07,230 --> 00:01:07,780
Location.

19
00:01:09,140 --> 00:01:11,720
OK, so this memory doesn't belong to you.

20
00:01:12,200 --> 00:01:15,380
So this will give us segmentation for our own time.

21
00:01:17,330 --> 00:01:22,640
Similarly, when you will try and print C out of minus one.

22
00:01:22,980 --> 00:01:24,980
So minus unindexed doesn't exist.

23
00:01:25,850 --> 00:01:27,230
It doesn't exist.

24
00:01:27,770 --> 00:01:29,260
The foster index is zero.

25
00:01:29,650 --> 00:01:31,490
Okay, so minus one doesn't exist.

26
00:01:31,550 --> 00:01:35,510
This will also give you segmentation, fault, order and time error.

27
00:01:37,060 --> 00:01:37,330
Okay.

28
00:01:37,670 --> 00:01:38,510
And one more thing.

29
00:01:39,020 --> 00:01:41,540
What is the maximum area size that you can make?

30
00:01:42,890 --> 00:01:45,480
So end equals end to the politics.

31
00:01:46,070 --> 00:01:51,260
So this is the maximum size makes them at a size that we can make.

32
00:01:51,560 --> 00:01:53,650
Sometimes it is 10 to the power five.

33
00:01:54,220 --> 00:01:54,450
OK.

34
00:01:54,770 --> 00:01:58,490
So it belongs front end with about five to 10 to the power six.

35
00:01:59,090 --> 00:02:00,320
That makes so many sizes.

36
00:02:00,560 --> 00:02:04,730
This only you cannot make a bigger eddy than this.

37
00:02:05,870 --> 00:02:06,500
So let's see.

38
00:02:07,220 --> 00:02:08,870
So let's see.

39
00:02:08,880 --> 00:02:10,610
What are you talking about?

40
00:02:11,780 --> 00:02:18,860
So I'm telling you that we cannot make an eddy bigger than 10 to the power five or 10 to the ballistics.

41
00:02:18,980 --> 00:02:21,260
So let this bastard what ended about five.

42
00:02:21,890 --> 00:02:22,850
So five zeros.

43
00:02:26,340 --> 00:02:27,660
So London.

44
00:02:30,000 --> 00:02:34,920
OK, so we can make an eddy often, but about five now dinted about six.

45
00:02:38,990 --> 00:02:44,680
So this kind of at the right time or DHC, I'll get on time is the name of the filer and dimed out CPB.

46
00:02:45,230 --> 00:02:48,500
So I'm getting an at that time, Nardizzi has stopped logging.

47
00:02:49,040 --> 00:02:50,630
So this is not the fault of blogs.

48
00:02:51,020 --> 00:02:51,980
This is your fault.

49
00:02:52,070 --> 00:02:56,560
You cannot make a committee of size bigger than 10 to the board five.

50
00:02:57,110 --> 00:03:02,570
So this kind of error, this kind of error is called segmentation for thought runtime error.

51
00:03:04,790 --> 00:03:08,090
Now, let's make it, let's say 100.

52
00:03:09,320 --> 00:03:12,510
And similarly, you are trying to exist here.

53
00:03:12,680 --> 00:03:16,520
Please give me what is present at 2000 location.

54
00:03:17,780 --> 00:03:21,360
So this will also give me segmentation filed at runtime error.

55
00:03:24,980 --> 00:03:27,040
So I'm getting this at it again.

56
00:03:27,950 --> 00:03:28,190
OK?

57
00:03:30,630 --> 00:03:33,870
So this is all about segmentation for 10 grand diameter.

58
00:03:34,200 --> 00:03:40,140
So what does segmentation fault or intimated that you are trying to access a memory location which doesn't

59
00:03:40,140 --> 00:03:40,890
belong to you?

60
00:03:41,890 --> 00:03:43,820
OK, thank you.
