online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void print_square(int x[]); int main(){ int i; int base[5] = {31, 71, 21, 41, 51}; printf("%p\n", base); print_square(base); //λ°°μ—΄ base의 i번째 μš”μ†Œλ₯Ό 각각 전달/ 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; //이 μ½”λ“œ λ•Œλ¬Έμ— λ°°μ—΄ μš”μ†Œλ§ˆλ‹€ 10μ”© λˆ„μ λ˜μ–΄μ„œ 좜λ ₯됨 //printf("%d ", 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