- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is a segmentation fault in C/C++ program?
A segmentation fault occurs when your program attempts to access an area of memory that it is not allowed to access. In other words, when your program tries to access memory that is beyond the limits that the operating system allocated for your program.
Segmentation faults are mostly caused by pointers that are:
Used to being properly initialized.
Used after the memory they point to has been reallocated or freed.
Used in an indexed array where the index is outside of the array bounds.
- What is a segmentation fault in C/C++?
- Is segmentation fault actual undefined behavior in C++?
- Core Dump (Segmentation fault) in C/C++
- What is Segmentation?
- What is Byzantine Fault Tolerance?
- What is segmentation with respect to text data in Tensorflow?
- List of Common Reasons for Segmentation Faults in C/C++
- How to find Segmentation Error in C & C++ ? (Using GDB)
- Difference between Paging and Segmentation
- What is the basic structure of a C# program?
- Difference Between Paging and Segmentation in OS
- What is a Debugger Program?
- What is a bootstrap program?
- What is a system program?
- Difference between Demand Paging and Segmentation