• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Character Array in C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Character Array in C (From: Michael <email@hidden>)
 >Re: Character Array in C (From: Ben <email@hidden>)
 >Re: Character Array in C (From: Michael <email@hidden>)

  • Prev by Date: Re: Character Array in C
  • Next by Date: Re: Xcode and clicking on java stack traces in the Run Log.
  • Previous by thread: Re: Character Array in C
  • Next by thread: Character Array in C
  • Index(es):
    • Date
    • Thread