S
seemanta dutta
greetings C gurus,
I would be grateful if I could know the answers to 2 questions:
1. I want to know how to pass a 2-dimensional array to a function, say
foo() and what will be its prototype declaration?
2. Is there any difference between the name of a 2-dimensional char
array and a 'pointer-to-a pointer-to-a-char' in other words, is the
following true?
char array[5][10], **ptr ;
ptr = array ;
actual examples of code or links to code using 2-dimensional arrays
passed to functions will be highly appreciated.
thanks in advance...
yours sicerely,
seemanta dutta ;-)
I would be grateful if I could know the answers to 2 questions:
1. I want to know how to pass a 2-dimensional array to a function, say
foo() and what will be its prototype declaration?
2. Is there any difference between the name of a 2-dimensional char
array and a 'pointer-to-a pointer-to-a-char' in other words, is the
following true?
char array[5][10], **ptr ;
ptr = array ;
actual examples of code or links to code using 2-dimensional arrays
passed to functions will be highly appreciated.
thanks in advance...
yours sicerely,
seemanta dutta ;-)