• 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: Lawrence Gold <email@hidden>
  • Date: Mon, 3 Apr 2006 14:24:02 -0600

On Apr 3, 2006, at 2:08 PM, Ben wrote:

test(helloworld) returns void, and yet you are using it as if it would evaluate to a char*.

Another problem is that there's a buffer overrun: When you declare

	char helloworld[11];

the array has 11 elements: 0 through 10, not 0 through 11.


_______________________________________________ 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>)

  • Prev by Date: Re: Character Array in C
  • Next by Date: Re: Character Array in C
  • Previous by thread: Re: Character Array in C
  • Next by thread: Re: Character Array in C
  • Index(es):
    • Date
    • Thread