online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void printf_square(int x); int main() { int i; int base[5] = {31, 71, 21, 41, 51}; // printf_square(base[i]); // 배열 base의 i번째 요소를 각각 전달 // return 0; for(i = 0; i < 5; i++) printf_square(base[i]); // 배열 base의 i번째 요소를 각각 전달 return 0; } /* void printf_square(int x[]) { // for(int i = 0; i < 5; i++) { x[i] += 10; } printf("%d", x[i] * x[i]); } */ void printf_square(int x) { printf("%d", x * x); }

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