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,674
    It creates a type HashTableType defined as an array of 101 pointers to type ChainNode.
    I used to be an adventurer like you... then I took an arrow to the knee.

  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