How does the C program handle segmentation faults?



How does the C program handle segmentation faults?..

Answer / nashiinformaticssolutions

Segmentation faults occur when invalid memory is accessed. Use debugging tools like gdb to analyze.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

0 Answers  


What is structure data type in c?

0 Answers  


Suppose I want to write a function that takes a generic pointer as an argument and I want to simulate passing it by reference. Can I give the formal parameter type void **, and do something like this? void f(void **); double *dp; f((void **)&dp);

1 Answers  


What does struct node * mean?

0 Answers  


What is derived datatype in c?

0 Answers  






Describe explain how arrays can be passed to a user defined function

0 Answers  


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

0 Answers   Wipro,


Can the curly brackets { } be used to enclose a single line of code?

0 Answers  


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

0 Answers  


What is the difference between exit() and _exit()?

1 Answers  


Find MAXIMUM of three distinct integers using a single C statement

0 Answers  


Why c is called top down?

0 Answers  


Categories