online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void print_square(int x[]); // ์ •์ˆ˜ํ˜• ๋ฐฐ์—ด์„ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›์•„ ์ œ๊ณฑ๊ฐ’(square) ์ถœ๋ ฅํ•˜๋Š” ํ•จ์ˆ˜ ์„ ์–ธ int main(){ int i; int base[5] = {31, 71, 21, 41, 51}; // ์ •์ˆ˜ํ˜• ๋ฐฐ์—ด base๋ฅผ ํฌ๊ธฐ 5๋กœ ์„ ์–ธํ•˜๊ณ  ์ดˆ๊ธฐํ™” print_square(base); // ๋ฐฐ์—ด base์˜ i๋ฒˆ์งธ ์š”์†Œ๋ฅผ ๊ฐ๊ฐ ์ „๋‹ฌ // ๋ฐฐ์—ด์˜ ์‹œ์ž‘ ์ฃผ์†Œ๊ฐ€ ์ „๋‹ฌ ๋จ return 0; } // ํ•จ์ˆ˜ ์ •์˜: ๋ฐฐ์—ด x์˜ ๊ฐ ์š”์†Œ์˜ ์ œ๊ณฑ์„ ์ถœ๋ ฅ void print_square(int x[]){ for (int i = 0; i < 5; i++){ // ๋ณ€์ˆ˜ i๋ฅผ 0๋ถ€ํ„ฐ 4๊นŒ์ง€ ๋ฐ˜๋ณต (๋ฐฐ์—ด์˜ ๋ชจ๋“  ์š”์†Œ) printf("%d ", x[i] * x[i]); // ๋ฐฐ์—ด x์˜ i๋ฒˆ์งธ ์š”์†Œ๋ฅผ ์ œ๊ณฑํ•œ ๊ฐ’์„ ์ถœ๋ ฅ } }

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