Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 3
    I think you meant typedef struct Node {...} *NodePtr; instead of the first two typedefs, unless you really want the NodePtr inside the structure, in which case you'd have to do it a little differently before. Commented Jan 27, 2013 at 4:51
  • By "My code is not working properly" what do you mean? Is there an error? Commented Jan 27, 2013 at 4:52
  • @Quirliom it does not work like it will not print out the data, which makes me think I am connecting the nodes properly Commented Jan 27, 2013 at 4:53
  • @chris I just want NodePtr to be typedef so I would not have to write "struct Node*" everywhere when defining a pointer of this type Commented Jan 27, 2013 at 4:56
  • 2
    @Masterminder, You don't. You only have to type Node * anyway. Commented Jan 27, 2013 at 4:58