int main() {
int x = 69;
int* px = &x;
cout << px << "\n" << *px << "\n\n";
float z = 69.69;
float* pz = &z;
cout << pz << "\n" << *pz << "\n\n";
char y = 'y';
char* pc = &y;
cout << pc << "\n" << *pc;
return 0;
}
This outputs:
004FFD28
69
004FFD10
69.69
y╠╠╠╠╠╠╠╠²O
y
Why does the char pointer have some weird value that's not a number?