online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void swap(int*, int*); int main(void){ int a, b; a = 10; b = 20; printf("before swap(): a = %d, b = %d\n", a, b); swap(&a, &b); printf("after swap() : a = %d, b = %d\n", a, b); return 0; } void swap(int *a, int *b){ int temp; temp = *a; *a = *b; *b = temp; printf("in swap(): a = %d, b = %d\n", a, b); }

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