Find greater and lesser value in c

//find the largest and smallest in array
#include <stdio.h>

int main(){
   
    int a[4]={2,4,6,1};
    int i,big,little;
    little=big=a[0];
    for(i=0;i<4;i++){
              if(a[i]>big){
                         big=a[i]; 

               }                  
               if(a[i]<little){
                               little=a[i];
               }               
              
              
}//for ends

printf("Big: %d\n", big);               
printf("Little: %d\n", little);

    system("pause");
   
 return 0;  
}