• 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: 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


  • Follow-Ups:
    • Distributed Builds: How can I check that it's working?
      • From: Phil Faber <email@hidden>
  • Prev by Date: Re: Seeking advice on debugging "real time" programs.
  • Next by Date: Mac keyboard as midi keyboard
  • Previous by thread: Character Array in C
  • Next by thread: Distributed Builds: How can I check that it's working?
  • Index(es):
    • Date
    • Thread