Re: sorting the input
arnuld wrote:
>
>
>
I did not know that passing a 2D array to a function results in
<pointer to whole array>. Thanks for telling me this C feature :)
>
The implicit conversion for an array gives you a pointer to the first
element. The first element is an array of char of size 6, so the array
conversion is to a pointer to "array six of char". That's what Richard
showed you above.
Brian
arnuld wrote:
On Mon, 28 Apr 2008 07:25:53 +0000, Richard Heathfield wrote:
>
Given the correct call foo(notanarrayo fpointers), we can deduce
that foo takes as its parameter a char (*)[6], NOT a char **.
that foo takes as its parameter a char (*)[6], NOT a char **.
I did not know that passing a 2D array to a function results in
<pointer to whole array>. Thanks for telling me this C feature :)
>
element. The first element is an array of char of size 6, so the array
conversion is to a pointer to "array six of char". That's what Richard
showed you above.
Brian
Comment