I am using Far manager for coding in c++
the code i wrote :
#include
using namespace std;
int main()
{
int a(5);
float b(3.14);
char ch = ‘A’;
string s(“HELLO WORLD”);
//displaying the address of each
cout<<&a<<"\n"<<&b<<endl;
//now displaying the address of ch
cout<<&ch;
//this error is beacuse of operator overloading
cout<<endl;
//explicit typecasting from char* to void*
cout<<(void*)&ch<<endl;
cout<<&s;
return 0;
}
the unexpected output for cout<<&ch i got is
A(2-3 char which arent on my keyboard ) H@(one tree like char )
unfortunately we cant post pics on doubts section
for rest the output is correct

