online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void print_square(int x[]); //int๋ฐฐ์—ด์„ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›๋Š” ํ•จ์ˆ˜ ์„ ์–ธ int main(){ int i; int base[5]={31,71,21,41,51}; //ํฌ๊ธฐ 5์ธ ๋ฐฐ์—ด ์„ ์–ธ ๋ฐ ์ดˆ๊ธฐํ™” printf("%p\n", base); print_square(base); //๋ฐฐ์—ด base๋ฅผ ํ•จ์ˆ˜์— ์ „๋‹ฌ(๋ฐฐ์—ด ์ด๋ฆ„์€ ๋ฐฐ์—ด์˜ ์ฒซ๋ฒˆ์งธ ์š”์†Œ ์ฃผ์†Œ๋ฅผ ์˜๋ฏธ) for(int i=0;i<5;i++){ printf("%d ",base[i]); } return 0; } void print_square(int x[]){ //๋ฐฐ์—ด์„ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ๋ฐ›๋Š” ํ•จ์ˆ˜์ •์˜ for(int i=0;i<5;i++){ x[i] += 10; // printf("%d ",x[i] * x[i]); //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