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