char AccountNumber[10][15]={"0000123456", "0000654321","0 009871234","000 1234987","10293 04500",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?