online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> void cargar(int []); void buscar (int [], int elem); void mostrar (); int numero=0; int flag=0; int pos=0; int main() { int vnum[10]; cargar(vnum); buscar(vnum,2); mostrar (); return 0; } void cargar(int v[]){ for(int c=0;c<=9;c++) { scanf("%d",&v[c]); } } void buscar(int v[], int e){ for (int c=0 ; c <=9 && flag !=1 ; c++) { if (e == v[c] ) { flag=1; numero=e; pos=c; } } } void mostrar () { printf ("El primer numero es : %d", numero); printf ("La posicion es : %d ",pos); }

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