segmentztion fault Get link Facebook X Pinterest Email Other Apps March 12, 2021 // C++ program to demonstrate segmentation // fault when array out of bound is accessed. #include <iostream> using namespace std; int main() { int arr[2]; arr[3] = 10; // Accessing out of bound return 0; } Read more