Okey , I understood ! Compiller will count 2 + 2 + 2 ... th string as i stand for. hope that is right..
2010/1/15 shamir shakir <[email protected]> > 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. >> > > I have a question here. > * char words[][2][40] = {* > > * "dog", "hund",* > * "no", "nein",* > * "year", "jahr",* > * "child", "kind",* > * "i", "ich",* > * "drive", "fahren",* > * "house", "haus",* > * "to", "zu",* > * "", ""* > * }; > can be written as > ** char words[][2][40] = {* > * "dog", "hund",**"no", "nein",**"year", "jahr",**"child", "kind",* > *"i", "ich",**"drive", "fahren",**"house", "haus",**"to", "zu",**"", ""** > };* > > If so, how the i'th pair can be calculated by the compiller ? > > Thanx > > > 2010/1/15 shamir shakir <[email protected]> > > >>> >>> >>> > if (!strcmp(english, words[i].english)) >>> >>> ...and as before, this is the same as: >>> >>> if (!strcmp(&english[0], &words[i].english[0])) >>> >>> >>> >>> It makes sense. Thanks jhon, thanks all :) >> > > > > -- > Shamir Shakir > http://www.DewsWorld.741.com > > :::::.......... Hope never ends...........::::: > -- Shamir Shakir http://www.DewsWorld.741.com :::::.......... Hope never ends...........::::: [Non-text portions of this message have been removed]
