online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <stdio.h> int main() { int a =1234; // ์ตœ์†Œ ๋„ˆ๋น„ 8์นธ ์ถœ๋ ฅ printf("[%d]\n",a); // ์ •์ˆ˜ ์ถœ๋ ฅ printf("[%8d]\n", a); // ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ printf("[%-8d]\n", a); // ์™ผ์ชฝ ์ •๋ ฌ printf("[%+8d]\n", a); // ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ, ๋ถ€ํ˜ธ ํ‘œ์‹œ printf("[%08d]\n", a); // ๊ณต๋ฐฑ ์ฑ„์›€ printf("[%+08d]\n", a); // ๋ถ€ํ˜ธ ํ‘œ์‹œ, ๊ณต๋ฐฑ ์ฑ„์›€์›€ char b = 'A'; double c = 3.14159; printf("[%c]\n", b); // ๋ฌธ์ž ์ถœ๋ ฅ printf("[%8c]\n", b); // ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ printf("[%-8c]\n", b); // ์™ผ์ชฝ ์ •๋ ฌ printf("[%f]\n", c); // ์†Œ์ˆ˜์  ์•„๋ž˜ ์—ฌ์„ฏ ์ž๋ฆฌ ์‹ค์ˆ˜ ์ถœ๋ ฅ printf("[%8.3f]\n", c); // ์˜ค๋ฅธ์ชฝ ์ •๋ ฌ, ์†Œ์ˆ˜์  ์•„๋ž˜ ์„ธ ์ž๋ฆฌ ์ถœ๋ ฅ printf("[%-8.3f]\n", c); // ์™ผ์ชฝ ์ •๋ ฌ, ์†Œ์ˆ˜์  ์•„๋ž˜ ์„ธ์ž๋ฆฌ ์ถœ๋ ฅ printf("[%+8.3f]\n", c); // ๋ถ€ํ˜ธ ํ‘œ์‹œ, ์†Œ์ˆ˜์  ์•„๋ž˜ ์„ธ์ž๋ฆฌ ์ถœ๋ ฅ printf("[%08.3f]\n", c); // ๊ณต๋ฐฑ ์ฑ„์›€, ์†Œ์ˆ˜์  ์•„๋ž˜ ์„ธ์ž๋ฆฌ ์ถœ๋ ฅ printf("[%+08.3f]\n", c); // ๋ถ€ํ˜ธ ํ‘œ์‹œ, ๊ณต๋ฐฑ ์ฑ„์›€, ์†Œ์ˆ˜์  ์•„๋ž˜ ์„ธ ์ž๋ฆฌ ์ถœ๋ ฅ๋ ฅ 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