Hey, guys, what's up?
So today we are going to see what is segmentation for, what is segmentation fault or what is run by
matter, run time et al.
For example, you have created an array of size 10 and what you're trying to do.
You are printing the value.
In location.
That's a two thousand.
So what will happen?
So this will give us a runtime at ad or segmentation it.
So segmentation fault means you are trying to access a memory.
You are trying to access memory, which is not yours.
OK.
So you are trying to access a memory which doesn't belong to you.
OK.
You have created an aerial size 10.
Do you want.
What is the value of present day 2000?
Location.
OK, so this memory doesn't belong to you.
So this will give us segmentation for our own time.
Similarly, when you will try and print C out of minus one.
So minus unindexed doesn't exist.
It doesn't exist.
The foster index is zero.
Okay, so minus one doesn't exist.
This will also give you segmentation, fault, order and time error.
Okay.
And one more thing.
What is the maximum area size that you can make?
So end equals end to the politics.
So this is the maximum size makes them at a size that we can make.
Sometimes it is 10 to the power five.
OK.
So it belongs front end with about five to 10 to the power six.
That makes so many sizes.
This only you cannot make a bigger eddy than this.
So let's see.
What are you talking about?
So I'm telling you that we cannot make an eddy bigger than 10 to the power five or 10 to the ballistics.
So let this bastard what ended about five.
So five zeros.
So London.
OK, so we can make an eddy often, but about five now dinted about six.
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.
So I'm getting an at that time, Nardizzi has stopped logging.
So this is not the fault of blogs.
This is your fault.
You cannot make a committee of size bigger than 10 to the board five.
So this kind of error, this kind of error is called segmentation for thought runtime error.
Now, let's make it, let's say 100.
And similarly, you are trying to exist here.
Please give me what is present at 2000 location.
So this will also give me segmentation filed at runtime error.
So I'm getting this at it again.
OK?
So this is all about segmentation for 10 grand diameter.
So what does segmentation fault or intimated that you are trying to access a memory location which doesn't
belong to you?
OK, thank you.