I have written a small main function .
I have defined one bool variable and cout this variable , I found
the value of this bool variable is 64.
Since, I am using 32-bit addressing .
My program is
int main()
{
bool ab;
cout<<ab<<endl;
}
output is 64.
Why it is...?
It should be 32.
May be I am wrong.
Yashwant
I have defined one bool variable and cout this variable , I found
the value of this bool variable is 64.
Since, I am using 32-bit addressing .
My program is
int main()
{
bool ab;
cout<<ab<<endl;
}
output is 64.
Why it is...?
It should be 32.
May be I am wrong.
Yashwant
Comment