online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> using namespace std; void swap(int *num1, int *num2) { int temp; temp = *num1; *num1 = *num2; *num2 = temp; } int main() { int num1, num2; cout<<"\nEnter the first number : "; cin>>num1; cout<<"\nEnter the Second number : "; cin>>num2; swap(&num1, &num2); cout<<"\nAfter Swapping, we have observed the following changes"; cout<<"\nFirst number : "<< num1; cout<<"\nSecond number: "<<num2; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



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