I was wondering how you would call a function that works with 1d arrays on a 2d array.
For example:
char word [30][20000];
The 30 corresponds to the letter and the 20000 corresponds to the word (which is part of a list of words)
How would I use this array with something like strcmp (otherword,word[][])? I don't want to compare it one letter at a time, I want to compare one word in the list to a different 1 dimensional string.
thanks very much... how does that work? I noticed you have only 1 dimension of the array refrenced in strcmp and cout... how does the computer know which dimension that is?
I was reading something about that but I was never able to find anything too in depth.
A multidimensional array with n dimensions is an array of arrays of [n-1] dimensions. That is the element of a multidimensional array with n dimensions is an array with n-1 dimensions.