Re: [OT] A bit confused on pointers...
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