Whenever I try running this program it always gives 0x441020. It is supposed to output 20. The compiler I'm using is code blocks. The program does return 0. So if someone could point out what is wrong with this program that would be much appreciated.
Code:#include <iostream> using namespace std; int array[2][4] = { {1, 2, 3, 4}, {10, 20, 30, 40} }; int main() { std::cout << array[2, 2] << "\n"; cin.get(); return(0); }