How the conditional part of for loop work in this program.Please anyone explain this to me.phone[i][0][0] means first list first string and first letter.
#include<stdio.h>
#include<string.h>
char phone[][2][40] = {
"Fred","555-1010",
"Barney","555-1234",
"Ralph","555-2347",
"Tom","555-8396",
"",""
};
int main(void)
{
char name[80];
int i;
printf("Name? ");
gets(name);
for(i=0; phone[i][0][0]; i++)
if(!strcmp(name, phone[i][0]))
printf("Number: %s", phone[i][1]);
return 0;
}