char AccountNumber[10][15]={"0000123456","0000654321","0009871234","00012349 87","1029304500",NULL};
AccountNumber array can have 10 strings, but it actually contains only 5 strings. In this case, I should stop when there is no string in the array (i.e.) after processing the 5 th string. How to check this?