top | item 24109273

(no title)

mbreedlove | 5 years ago

I've always struggled with this, I usually use the first style. To me, Bark and Bark* are both types, while the name p_dog is just a name regardless of what it's referring to.

I read the first as 'a struct of type Bark pointer named p_dog'.

How do you read the second example in your head?

discuss

order

rootbear|5 years ago

Pointer to type "struct Bark".