Alright, so I was working with arrays in C++ on my mb and the code is
So when I compile and run it through terminal I get this "1606417072" and I know I haven't initialized the nums array yet, so shouldn't all of the elements be zero?
Code:
#include <iostream>
using namespace std ;
int main()
{
int nums[50] ;
cout << nums[4] << endl ;
return 0 ;
}
So when I compile and run it through terminal I get this "1606417072" and I know I haven't initialized the nums array yet, so shouldn't all of the elements be zero?