online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; void intercambio(int, int); /* prototipo */ int main(){ int a=1,b=2; cout<<"Al inicio.."<<endl; cout<<"a= "<<a<<" "<<"b= "<<b<<endl; intercambio(a,b); /* llamada a la funcion */ cout<<"Fuera de la funcion.."<<endl; /* Los valores iniciales se conservan, el paso de parametros es por valor */ cout<<"a= "<<a<<" "<<"b= "<<b<<endl; return 0; } void intercambio(int x, int y){ /* declaracion formal */ int temp; temp=x; x=y; y=temp; cout<<"Dentro de la funcion.."<<endl; cout<<"a= "<<x<<" "<<"b= "<<y<<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