• 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: 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
References: 
 >Re: [OT] A bit confused on pointers... (From: Greg Herlihy <email@hidden>)
 >Re: [OT] A bit confused on pointers... (From: Steve Checkoway <email@hidden>)
 >Re: [OT] A bit confused on pointers... (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: [OT] A bit confused on pointers...
  • Next by Date: Re: [OT] A bit confused on pointers...
  • Previous by thread: Re: [OT] A bit confused on pointers...
  • Next by thread: Re: [OT] A bit confused on pointers...
  • Index(es):
    • Date
    • Thread