What does this mean?

This is a discussion on What does this mean? within the C++ Programming forums, part of the General Programming Boards category; Code: enum {HASH_TABLE_SIZE = 101}; typedef ChainNode * HashTableType[HASH_TABLE_SIZE]; I could not get the point, can someone explain what 2nd ...

  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,794
    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

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