Thread: What does this mean?

  1. #1
    Registered User
    Join Date
    Dec 2004
    Location
    Ankara, Turkey
    Posts
    18

    What does this mean?

    Code:
    enum {HASH_TABLE_SIZE = 101};
    typedef ChainNode * HashTableType[HASH_TABLE_SIZE];

    I could not get the point, can someone explain what 2nd line of the code does to me?

    Best wishes
    Sarp Arda Coskun
    www.bilgiciftligi.com

  2. #2
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,817
    It creates a type HashTableType defined as an array of 101 pointers to type ChainNode.
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #3
    Registered User
    Join Date
    Dec 2004
    Location
    Ankara, Turkey
    Posts
    18
    Thanks buddy.
    Sarp Arda Coskun
    www.bilgiciftligi.com

Popular pages Recent additions subscribe to a feed