• 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: [OT] A bit confused on pointers...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] A bit confused on pointers...


  • Subject: Re: [OT] A bit confused on pointers...
  • From: Pontus Ilbring <email@hidden>
  • Date: Thu, 29 Dec 2005 23:54:17 +0100

On 12/29/05, Clark Cox <email@hidden> wrote:
> 2005/12/29, Andreas Mayer <email@hidden>:
> >
> > Am 29.12.2005 um 03:37 Uhr schrieb Camillo Lugaresi:
> >
> > > I'll never understand why so many people have trouble with pointers,
> >
> > Well, what I can say for myself is, that I don't have a problem with
> > pointers - but I *do* have a problem with the *notation* for handling
> > pointers in C. It's just horribly confusing in my opinion.
>
> Just out of curiosity, what is confusing about the syntax?
>
> If (ptr) is a pointer, then (*ptr) is whatever it points at

It is perhaps unfortunate how unary * is a different beast in an
expression and a declaration. After all, these two lines are very
different indeed.

int *intPtr = 0;
*intPtr = 0;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >[OT] A bit confused on pointers... (From: Sanri Parov <email@hidden>)
 >Re: [OT] A bit confused on pointers... (From: Camillo Lugaresi <email@hidden>)
 >Re: [OT] A bit confused on pointers... (From: Andreas Mayer <email@hidden>)
 >Re: [OT] A bit confused on pointers... (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: Tiger Mail.app style toolbar item
  • Next by Date: Re: Tiger Mail.app style toolbar item
  • Previous by thread: Re: [OT] A bit confused on pointers...
  • Next by thread: Re: [OT] A bit confused on pointers...
  • Index(es):
    • Date
    • Thread