// C++ program to demonstrate segmentation
// fault when array out of bound is accessed.
#include <iostream>
using namespace std;
int main()
{
int arr[2];
// Accessing out of bound
arr[3] = 10;
return 0;
}
when i run this code no error is shown in my vscode terimal output
i was expecting a segmentation error message but it shows nothing not even a red cross
in some other cases it shows red cross but no message can some please help! thank you!