1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

having problems with this typedef statement

Discussion in 'Meet and Greet' started by shakisparki, Mar 29, 2011.

  1. shakisparki

    shakisparki New Member

    Mar 30, 2011
    Likes Received:
    Trophy Points:
    Hello , Please what does the second typedef statement do,

    struct listnode{
    char data;
    struct listnode *nextPtr;

    typedef struct listnode Listnode;
    typedef ListNode *ListNodePtr;

    what is the difference between

    ListNodePtr *sPtr;
    ListNodePtr startPtr;

    Please explain what the second Line of Code would do please
    startPtr = NULL;
    ListNodePtr *sPtr = &startPtr

Share This Page