[Dev-C++] Question about bool data type.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Mani <man...@gm...> - 2011-09-21 21:49:34
|
I ran the following simple pgm using bloodshed.. int main() { bool x; cin >> x; cout << "x = " << x << endl; return 0; } What should be the output when the user types in 100? I expected it to be 1, but I get some other number (say 118).. is it a bug in the compiler? I am not able to explain this.. best, murali. |