Program in C to find position of second smallest element in array

Write a Program in c to find position of second smallest element in array

\* C Program to to find position of second smallest element in array *\

# include < stdio.h >
int   main( )
{

int   a, b, n, sml=0, pos, i, j, temp  ;
printf(" Enter the Numbers of terms: ") ;
scanf("%d ", & n) ;
printf("\n Enter the terms : \n") ;
for (  i = 1 ; i < = n ; i++ )
{

scanf("%d ", & a[i]) ;
b[i] = a[i] ;

}
for (  i = 1 ; i < = n ; i++ )
{

for (  j = 1 ; j < = n ; j++ )
{

if ( a[i] <= a[j] )
{

temp = a[i] ;
a[i] = a[j] ;
a[j] = temp ;

}

}

}
printf("\n The Array Elements are: \n") ;
for (  i = 1 ; i < = n ; i++ )
printf(" %d \t", b[i]) ;
sml = a ;
for (  i = 1 ; i < = n ; i++ )
{

if ( sml == b[i] )
{

pos = i ;

}

}
printf("\n Position of second smallest Element is: %d", pos) ;
printf("\n Second Smallest Number is : %d", sml) ;
return ( 0 ) ;

}

Output of Program:
{"ft_lang_label":"__label__en","ft_lang_prob":0.51880705,"math_prob":0.99941695,"size":874,"snap":"2019-26-2019-30","text_gpt3_token_len":327,"char_repetition_ratio":0.13908046,"word_repetition_ratio":0.1981982,"special_character_ratio":0.5011442,"punctuation_ratio":0.22680412,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9993529,"pos_list":[0,1,2],"im_url_duplicate_count":[null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-06-16T15:46:59Z\",\"WARC-Record-ID\":\"<urn:uuid:45ad4c6a-3339-4028-8421-6ef56af46838>\",\"Content-Length\":\"31165\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:6cb5a02c-a44c-484c-a3e0-0752ccf14ece>\",\"WARC-Concurrent-To\":\"<urn:uuid:6e8e3ee0-3e14-459e-b367-e17064eb5152>\",\"WARC-IP-Address\":\"208.91.198.123\",\"WARC-Target-URI\":\"http://generalnote.com/C-Programm/Programs-on-Array/Program-in-c-to-find-position-of-second-smallest-element-in-array.php\",\"WARC-Payload-Digest\":\"sha1:BIXEJFR4CPDEPZXWZWWEUAYZPCV4XHVP\",\"WARC-Block-Digest\":\"sha1:HWGQW7ATIQVSHRRJDB6UUMOXARNLLES5\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-26/CC-MAIN-2019-26_segments_1560627998250.13_warc_CC-MAIN-20190616142725-20190616164725-00287.warc.gz\"}"}