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 declaration int c = 12; void test(); int main() { ++c; // Outputs 13 cout << c <<endl; test(); return 0; } void test() { ++c; // Outputs 14 cout << c; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



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