Posts

Showing posts from March, 2021

segmentztion fault

  // 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; }