It's not empty but 0 and what if one of element is equal to 0 in OP's numbers array?


else
distinct[disNumCount] = num;//if the number is not there, save it
disNumCount++;
break;...