online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; void passByVal(int v) { cout << "passByVal's v is at address " << &v << ", and holds " << v << endl; } void passByRef(const int& r) { cout << "passByRef's r is at address " << &r << ", and holds " << r << endl; } int main() { int x = 23; int y = 19; cout << "main's x is at address " << &x << ", and holds " << x << endl; cout << "main's y is at address " << &y << ", and holds " << y << endl; cout << "(example-1 does nothing else.)" << endl; return 0; }

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