what is segmentation fault?

Answer Posted / jailani

in many situation segmentation faults can occur. the main
situations are
1. when you are trying to access the null pointer
2.access to memory that already freed
3.dereferencing null pointer and uninitialized pointer
4.and also some compiler give segmentation fault when stack
overflow will occur

the concept behind the segmentation fault is that every
program has some space on memory for it execution like
storing variables in stack and heap. when you are try to
access the out of memory that has allocated.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain process management system calls in linux?

537


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

2131


What are system calls used for process management in linux?

577


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

1924