Is it possible for sizeof to give me the number of rows in my array rather than columns.
char list[7][70];
int main()
{
printf("%d",sizeof(list); /* produces 490 (7*70) */
printf("%d",sizeof(list[0])); /* produces 70 */
}
I want to produce the number of rows i.e. 7
thx for the help all.