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() { std::cout << std::endl; std::cout << "Case 3 : Multiple pointers pointing to same address : " << std::endl; int *p_number3 {new int{83}}; int *p_number4 {p_number3}; std::cout << "p_number3 - " << p_number3 << " - " << *p_number3 << std::endl; std::cout << "p_number4 - " << p_number4 << " - " << *p_number4 << std::endl; //Deleting p_number3 delete p_number3; //p_number4 points to deleted memory. Dereferncing it will lead to //undefined behaviour : Crash/ garbage or whatever std::cout<< "p_number4(after deleting p_number3) - " << p_number4 << " - " << *p_number4 << std::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