We respect your privacy. Our website does not use cookies, but some embedded content and external links may collect data. By continuing to use the site, you acknowledge our Privacy Policy.
Download PDF

#include <iostream>
using namespace std;

int main() {

    int x[10];

    x[10] = 5;
    x[-4] = 3;

    cout << "Hello World!" << endl;
    return 0;
}

1 – Start Page

Descrizione dell'immagine

2 – Select Original Project Directory

Descrizione dell'immagine

3 – Select Modified Project Directory

Descrizione dell'immagine

4 – Select the files to test

Descrizione dell'immagine

5 – Click “Copy Project”

Descrizione dell'immagine

6 – Compile the Modified Project

7 – Run the exe file

Descrizione dell'immagine

8 – If a buffer overflow occurs, “Errors.txt” will be created and program will terminate

Descrizione dell'immagine

9 – Prompt results and “Errors.txt”

Descrizione dell'immagine

Error n. 1
Maximum index allowed for "x": 9
Index name : 10
Index value : 10
file: C:\Examples\Eclipse\Console_Examples\Ex01_Single_Buffer\Ex01_Single_Buffer\src\Ex01_Single_Buffer.cpp line : 24