printf("\nEnter ic number :");
scanf("%s", &icnum);
You do not use the
addressOf
operator (
&
) on arrays. The array name
is a pointer to the memory address. Change it to:
printf("\nEnter ic number :");
scanf("%s", icnum);
And do the same for the other arrays.