online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void swap(int, int); // 함수 원형 int main() { int a, b; a = 10; b = 20; printf("before swap() : a=%d, b=%d\n", a, b); // 호출 전 a와 b의 값 swap(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