online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> using namespace std; int main() { bool a = 5; // 5 converted to true int b = a; // b will store 1 bool c = 0; // converted to false bool d = "hello"; // converted to true; cout << d << endl; // prints 1 (NOT true) // Printing with boolalpha cout << boolalpha; cout << "a = " << a << endl; cout << "b = " << b << endl; cout << "c = " << c << endl; cout << "d = " << d << endl; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue