After compiling there are no outputs. cant seem to understand the issue. Also there are no errors while compiling .
#include<stdio.h>
void main(void)
{
    int a[] = {5,4,3,2,1};
    int i,j,min,b[5];
    min = a[0];
    for(i=0;i<sizeof(a);i++)
    {
        if(a[i]<min)
        {
            j = a[i];
            a[i] = min;
            min = j;
        }
        b[i] = min;
    }
    for(i=0;i<sizeof(b);i++)
    {
        printf("%d,",b[i]);
    }
}
 
    