online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include<iostream> using namespace std; void readinput(int& n1, int& n2); void swap(int& n1, int &n2); void toprint(int n1, int n2); int main() { int n1; int n2; readinput(n1,n2); swap(n1,n2); toprint(n1,n2); } void readinput(int &n1, int &n2) { n1 = 10; n2 = 5; } void swap(int &n1, int &n2) { int temp; temp = n1; n1 = n2; n2 = temp; } void toprint(int n1, int n2) { cout<<n1<<" "<<n2<<"\n"; }

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