Thread: having problems with this typedef statement

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    having problems with this typedef statement

    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

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    You're obviously on a course... courses have text books... go look it up.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 08-16-2010, 10:00 AM
  2. Help with STL-like AA-tree, skew()/split() problems
    By chickenhooves in forum C++ Programming
    Replies: 0
    Last Post: 06-03-2010, 02:21 PM
  3. Problems with string variables in an IF statement
    By Calef13 in forum C++ Programming
    Replies: 5
    Last Post: 12-30-2005, 10:40 PM
  4. Switch statement problems
    By ComDriver in forum C++ Programming
    Replies: 5
    Last Post: 02-21-2005, 11:31 AM
  5. build errors migrated from dx9b to dx9c sdk
    By reanimated in forum Game Programming
    Replies: 4
    Last Post: 12-17-2004, 07:35 AM