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