online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
//C Program To Find Smallest Number In An Array Using Recursion #include<stdio.h> int smallest(int a[],int n); void main() { int i,j,n,a[20]; printf("enter a Number :"); scanf("%d",&n); printf("enter values : "); for(i=0;i<n;i++) { scanf("%d",&a[i]); } printf("\nSmallest Number is : %d",smallest(a,n)); } int smallest(int a[],int n) { int min; if(n==1) return a[0]; else { min=smallest(a,n-1); if(min<a[n-1]) return min; else return a[n-1]; } }

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