online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> using namespace std; int larger(int arr[], int dim); int main() { int array[]={5, 3, 2, 1, 10, 9}; cout<<array[larger(array, 5)]; return 0; } int larger(int arr[], int dim){ int mayor=0; for(int i=0; i<dim; i++){ if( arr[mayor] < arr[i] ){ mayor = i; } } return mayor; }

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