Re: [OT] A bit confused on pointers...
Re: [OT] A bit confused on pointers...
- Subject: Re: [OT] A bit confused on pointers...
- From: Steve Checkoway <email@hidden>
- Date: Fri, 30 Dec 2005 10:18:08 -0800
On Dec 30, 2005, at 9:38 AM, glenn andreas wrote:
typedef unsigned long a;
unsigned long b;
a * b;
Ah yes. Clearly I didn't think about typedefing something to a. I was
thinking of using it for multiplication and for dereferencing.
Actually, your code won't compile because you redeclare b:
$ gcc -Wall -x c -c - <<EOF
> typedef unsigned long a;
> unsigned long b;
>
> a * b;
> EOF
<stdin>:4: error: conflicting types for 'b'
<stdin>:2: error: previous declaration of 'b' was here
- Steve
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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