--- In [email protected], shamir shakir <dewswo...@...> wrote:
>
>    while( strcmp(words[i][0], "") ){*
>        if (!strcmp(english, words[i][0]) ) { // How a three dimensional
> array is used as 2D here & if  i = 0 initially and  i cant understand this
> line totally

words[i][j][n] is the n'th character in the English (j=0) or German (j=1) word 
of the i'th pair of words.

The strcmp() function needs to be passed the address of the first character in 
the string which it is comparing:

 &words[i][j][0]

('&' is the 'address of' operator). But C(++) allows you to shorten this to:

  words[i][j]

Actually the other argument to strcmp(), the "", could be written as &""[0] as 
well.

Does that help?

Reply via email to