online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// P05.cpp #include <iostream> using namespace std; int maximo(int * p); int main(){ int edades[] = {22, 19, 17, 23, 18, 0}; cout<<"edad maxima: "<<maximo(edades)<<endl; } int maximo(int * p){ if(*p == 0) return 0; int max = *p; while(*++p != 0){ if(*p > max) max = *p; } return max; }

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