How does the C program handle segmentation faults?
Answers were Sorted based on User's Feedback
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 |
Answer / glibwaresoftsolutions
Segmentation faults occur when invalid memory is accessed. Use debugging tools like gdb to analyze.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is difference between scanf and gets?
What is the total generic pointer type?
what will be the output of this program main() { int i=1; while (i<=10); { i++; } }
Is it fine to write void main () or main () in c?
What is zero based addressing?
How to explain the final year project as a fresher please answer with sample project
When do we get logical errors?
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
What are the different types of pointers used in c language?
If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?
Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort
how to find that no is int or float?