#include<iostream>
#include<fstream>
using namespace std;
int main()
{
char a='p';
int b=23;
float c=45.67;
ofstream out("test.txt");
out<<a<<" "<<&a<<endl;
out<<b<<" "<<&b<<endl;
out<<c<<" "<<&c<<endl;
}
the output for this is in the text file:
p pα#a/
23 0x22cd08
45.67 0x22cd04
why is the address of the character variable is very different from others??
could some one pls explain this!!