When I ran the following code:
#include <iostream>
using namespace std;
int main() {
    int arrayTest[8];
    for (int i = 0; i < 8; i++) {
        cout << arrayTest[i] << endl;
    }
    return 0;
}
It outputted:
0
0
0
-245235546
-143858606
117716240
1
But when I ran it again, it outputted:
0
0
0
-594607916
44357026
177595664
1
I'm wondering where it got numbers such as -245235546, 44357026... from, why the first 3 numbers are 0 and the last is 1, and why the output changes every time I run the code.
I apologize in advance if this is a simple question, I am a beginner to c++
