Why does "cout" not print the address of a char variable?
For example:
The following code for an integer variable prints the address of the integer variable.
int Integer;
int* PtrInteger = &Integer;
*PtrInteger = 10;
cout << PtrInteger << endl;
The same code for a char variable does not print the adress of the char variable, it just prints some stange characters.
char Char;
char* PtrChar = &Char;
*PtrChar = 'S';
cout << PtrChar << endl;
What is the reason of this?
Thanks a lot ...