online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { int a = 1234; // 최소 너비 8칸 출력 printf("[%d]\n", a); // 정상 출력 printf("[%8d]\n", a); // 오른쪽 정렬 printf("[%-8d]\n", a); // 왼쪽 정렬 printf("[%08d]\n", a); // 0으로 채움 printf("[%+8d]\n", a); // 부호 표시 printf("[%+08d]\n", a); // 부호 표시, 0으로 채움 printf("[%+8.0d]\n", a); // 부호 표시, 정수만 출력 char b = 'A'; double c = 3.14159; printf("[%c]\n", b); // 문자 출력 printf("[%3c]\n", b); // 오른쪽 정렬 printf("[%-3c]\n", b); // 왼쪽 정렬 printf("[%f]\n", c); // 소수점 이하 여섯 자리 출력 printf("[%8.3f]\n", c); // 부호 없음, 소수점 이하 3자리 출력 printf("[%+8.3f]\n", c); // 부호 표시, 소수점 이하 3자리 출력 printf("[%08.3f]\n", c); // 부호 없음, 공백 채움, 소수점 이하 3자리 출력 printf("[%+08.3f]\n", c); // 부호 표시, 공백 채움, 소수점 이하 3자리 출력 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