Re: Character Array in C
Re: Character Array in C
- Subject: Re: Character Array in C
- From: Jonas Maebe <email@hidden>
- Date: Mon, 3 Apr 2006 22:39:15 +0200
On 03 Apr 2006, at 22:32, 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"
void is not the same as "void *". void is literally nothing. If you
know Pascal, then
- "void test();" is the same as "procedure test;" (i.e., simply a
bunch of statements grouped and given a name)
- "void * test();" is the same as "function test: pointer;" (i.e., a
bunch of statements which a.o. compute some value and return it)
Jonas
_______________________________________________
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