typedef question ?

This is a discussion on typedef question ? within the C Programming forums, part of the General Programming Boards category; if i do this ? what does T become ? Code: typedef int *T;...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    167

    typedef question ?

    if i do this ?
    what does T become ?

    Code:
    typedef int *T;

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Ugly. A typedefed pointer to an integer.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    A type-specifier for integer pointers.

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    167
    so:
    Code:
    int *a;
    equals to:
    Code:
    T a;
    ?

    what link do you recomend for starting learning Data Structures... especialy Lists!

    Thank you!
    Last edited by spank; 03-21-2006 at 01:15 PM.

  5. #5
    Mad OnionKnight's Avatar
    Join Date
    Jan 2005
    Location
    Umeň, Sweden
    Posts
    555
    Yes they are the same.
    Linked list tutorials can be found on this site among a few others.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with ZwQueryDirectoryFile for my Driver.
    By taDo in forum Windows Programming
    Replies: 9
    Last Post: 11-27-2008, 07:54 AM
  2. Error: redefinition of typedef xxxx
    By Rocha in forum C Programming
    Replies: 2
    Last Post: 11-24-2008, 08:19 AM
  3. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  4. Help...typedef struct...confusing...
    By darkchild in forum C Programming
    Replies: 1
    Last Post: 01-23-2007, 07:03 AM
  5. question about typedef
    By volk in forum C++ Programming
    Replies: 8
    Last Post: 05-30-2003, 10:53 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21