Answer Posted / sunil kumar sharma
The physical memory in a computer is managed by the
operating system.It has different segments for different
purposes like for storing data,variables,text,garbage
values etc.When we try to access the memory location
outside of any allocated space segmentation fault does
occurs.
Like in Unix environment pointers must be handled carefully.
char *p;
We can't use this pointer variable without initializing it.
If we do so, we will get a segmentation fault error.
Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers