what is segmentation fault?

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


Please Help Members By Posting Answers For Below Questions

What are system calls used for process management in linux?

574


I would like to know whether Simado and Setu products are they EPBX or not ?

1922


what are different ways the context switch happens from user to kernel space or vice-versa ?

2128


Explain process management system calls in linux?

536