I am using following code in c++

```
#include <iostream>

using namespace std;

int functionIs();

int main()
{
    functionIs();
    return 0;
}

int functionIs()
{

    int value[3];
    value[0] = 0;

    for (int i = 0; i < 3; i++)
    {
       value[i] += i + 1;
    }

    for (int k = 0; k < 3; k++)
    {
        cout << "Value = " << value[k];
        cout << endl;
    }

    return 0; 
}

```

Output:

Value = 1

Value = 2

Value = 4197152

What is wrong?

Thank you in advance.