By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,413 Members | 998 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,413 IT Pros & Developers. It's quick & easy.

How to Check the null string in a 2D array

P: 1
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?
Nov 3 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.