online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to code of Lập trình - Điện tử Series: C++ Author: Nghĩa Taarabt *******************************************************************************/ #include <iostream> using namespace std; // global variable int num; // function declaration int& test(); int main() { // assign 5 to num variable // equivalent to num = 5; test() = 5; cout << num; return 0; } // function definition // returns the address of num variable int& test() { return num; }

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