دوستان این کد دررابطه با ترکیب دو آرایه مرتب شده هست اما کار نمیکنه..از راهنمایی هاتون ممنون میشم
#include<stdio.h>
#define SIZE1 6
#define SIZE2 4
#define SIZE3 10
void main()
{
int a[SIZE1], b[SIZE2],c[SIZE3], i, j, k;
printf("please enter the elements of array 'a'\n");
for(i = 0 ; i < SIZE1 ; i++)
{
printf(" enter The %dth integer of array 'a': ", i+1);
scanf("%d", &a[i]);
}

printf("please enter the elements of array 'b'\n");
for(j = 0 ; j < SIZE2 ; j++)
{
printf("please enter The %dth integer of array 'b': ", j+1 );
scanf("%d", &b[j]);
}
i=0;
j=0;
k=0;
while(i < SIZE1 || j < SIZE2 )
{
k++;
if(a[i] < b[j])
{
c[k] = a[i];
i++;
}
else if( b[j] < a[i])
{
c[k] = b[j];
j++;
}


}

for(k = 0 ; k < SIZE3 ; k++)
printf("%d", c[k]);
}