Re: Character Array in C
Re: Character Array in C
- Subject: Re: Character Array in C
- From: Scott Fraser <email@hidden>
- Date: Mon, 3 Apr 2006 15:42:02 -0700
On Apr 03, 2006, at 03:16 PM, Michael wrote:
If passing a character array is not by value, but by reference, why
does it not work to have test as a "void" type? As, if my
understanding is correct, ( which it probably is not), what is
passed to "test" as an argument is not the "real array" but a pointer
to the first byte of the array "helloworld"
Even if the function is typed correctly (as it should be "char *"
instead of "void"), the function "test" isn't returning anything.
There is no "return s;" statement.
Scott
-----
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden