Hi, I have a quick question on some old code I have that I am going through ( I haven't done any programming for about 10 months)
I cannot for the life of me figure out what is wrong with the program.Code:#include <iostream> using namespace std; int main() { int array[10]; int x; for(x = 0; x < 10; x++) { cout << array[x] << endl; } return 0; }
I do not receive any errors, but the output is 10 values of
-858993460.
What am I doing that is completely wrong?
Thanks, from a n00b re-learning C++.
(I plan on looking back on my old books and the tutorials on this site, but I just couldn't see what was wrong.)