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); //호출 전 a와 b의 값 swap(&a, &b); //a와 b의 주소 전달 printf("after swap() : a = %d, b = %d\n", a, b); //호출 후 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