online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int main() { const int x = 10; int *x_var; x_var = const_cast<int*> (&x); // VΓ‘lido // x_var = &x; // Ilegal, el compilador da error *x_var = 14; // Indefinido cout << *x_var << ", " << x << endl; return 0; }

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