OK so since u mentioned in one of your first posts that the size of the array (no. of employees) depends on how many employees the user wishes to input, you could ask the user to input that number right in the beginning & store it in your variable 'size'...
...which actually, i think, leads me to my question...what does the '2' signify in:
while ( scanf("%s%d", staffname[count], &staffnumber[count]) == 2 )
got anything to do with eof?...please advise...