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}; for(i = 0; i < 5; i++) print_square(base[i]); return 0; } void print_square(int x){ printf("%d ",x*x); } /*#include <stdio.h> //x는 print_square에서만 쓸 수 있는 지역 변수 void print_square(int x[]); int main(){ int i; int base[5] = {31, 71, 21, 41, 51}; print_square(base); return 0; } void print_square(int x[]){ for(int i = 0; i < 5; i ++){ printf("%d ",x[i]*x[i]); } }*/ /*#include <stdio.h> //x는 print_square에서만 쓸 수 있는 지역 변수 void print_square(int x[]); int main(){ int i; int base[5] = {31, 71, 21, 41, 51}; print_square(base); for(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; } }*/

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