I'm not sure what I'm doing incorrectly here, but when I compile this program, the console output shows all of the data as strange corrupted characters and what seems to be hex numbers.
Here's the source:
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int x[10] = { -5, 4, 3 };
char letters[] = { 'a', 'b', 'c' };
double z[4];
cout << x;
cout << "\n";
cout << letters;
cout << "\n";
cout << z;
cout << "\n";
system("pause");
return 0;
}
Here's how it compiles - https://gyazo.com/a622959f6b6e88846ce5d1d922c8c356
Thanks in advance.