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; int main() { int *ptr; int num = 10; ptr = &num; ptr = ptr + 1; cout << "Address of num: " << ptr << endl; cout << "Address + 1: " << ptr + 1 << endl; cout << "Address - 1: " << ptr - 1 << 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