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 base[5] = {31,71,21,41,51}; printf("%p \n", base); for(int i = 0; i < 5; i++){ printf("%d ", base[i]); } printf("\n"); print_square(base); // base λ°°μ—΄λͺ… μžμ²΄κ°€ μ£Όμ†ŒλΌμ„œ κ·ΈλŒ€λ‘œ λ„£λŠ”λ‹€. //ν•¨μˆ˜λ₯Ό 반볡문 λŒλ¦¬λŠ”κ²ƒλ³΄λ‹€ ν•¨μˆ˜μ•ˆμ—μ„œ ν•˜λŠ”κ²Œ μ’‹λ‹€. for(int i = 0; i < 5; i++){ printf("%d ", base[i]); } return 0; } void print_square(int x[]){ // 배열을 λ§€κ°œλ³€μˆ˜λ‘œ λ°›μ„λ•ŒλŠ” []을 κΌ­ μ¨μ€˜μ•Όν•œλ‹€. printf("%p \n", x); // μ£Όμ†Œκ°€ κ°™λ‹€. for(int i = 0; i < 5; i++){ x[i] += 10; } } // λ§€κ°œλ³€μˆ˜μ—λŠ” λ°˜λ“œμ‹œ μ£Όμ†Œκ°€ λ“€μ–΄κ°€μ•Όν•œλ‹€. // call by reference κ°œλ…μ΄λ‹€. // 맀개인자둜 μ£Όμ†Œκ°€ μ „λ‹¬λœλ‹€λ©΄ 값이 λ°”λ€”μˆ˜ μžˆλ‹€. // λ§€κ°œμΈμžκ°€ μ£Όμ†Œκ°€ μ•„λ‹ˆλΌλ©΄ μ ˆλŒ€ λ°”κΏ€μˆ˜μ—†λ‹€. // *baseλŠ” base[0]κ³Ό κ°™λ‹€ // *(base+1)은 base[1]κ³Ό κ°™λ‹€. // +1을 ν•  λ•Œ μžλ£Œν˜•μ΄ int라면 4λ°”μ΄νŠΈλ₯Ό κ³±ν•΄ κ³„μ‚°λœλ‹€.

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