online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
// Program to take 5 values ​​from the user and store them in an array // Print the elements stored in the array #include <stdio.h> void main() { int values[5]; printf("Enter 5 integers: "); for(int i = 0; i < 5; ++i) // taking input and storing it in an array { scanf("%d", &values[i]); } printf("Displaying integers: "); for(int i = 0; i < 5; ++i) // printing elements of an array { printf("%d\n", values[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