hi all

This is a discussion on hi all within the C Programming forums, part of the General Programming Boards category; Code: int main() { PATH_WARREN_STRUCT WarrenIn; PATH_FLT_SNAPSHOT_STRUCT FssIn, Fsearch; static PATH_FLT_SNAPSHOT_STRUCT TmpFssRec[MAX_ARRAY]; PATH_FLT_SNAPSHOT_STRUCT * fss_leg_found; IN_PATH_STRUCT PathRecIn, TmpPathRec; OUT_PATH_STRUCT PathRecOut; ...

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    26

    hi all

    Code:
    int main()
    {
        PATH_WARREN_STRUCT          WarrenIn;
        PATH_FLT_SNAPSHOT_STRUCT    FssIn, Fsearch;
        static PATH_FLT_SNAPSHOT_STRUCT TmpFssRec[MAX_ARRAY];
    
        PATH_FLT_SNAPSHOT_STRUCT  * fss_leg_found;
        IN_PATH_STRUCT              PathRecIn, TmpPathRec;
        OUT_PATH_STRUCT             PathRecOut;
        NETFARE_CALC_STRUCT         nfare;
        PATH_AVG_OW_FARE_STRUCT     AverageOWfare, Sfare;
        static PATH_AVG_OW_FARE_STRUCT SearchOWfareRec[MAX_ARRAY];
        PATH_AVG_OW_FARE_STRUCT * fare_rec_found;
    In the above


    PATH_FLT_SNAPSHOT_STRUCT FssIn, Fsearch;


    can any say me what it mean that FssIn, Fsearch as they alias for the structure?


    Code:
    static PATH_FLT_SNAPSHOT_STRUCT TmpFssRec[MAX_ARRAY];
     PATH_FLT_SNAPSHOT_STRUCT  * fss_leg_found;
    can please let me know what these mean pointer refers to structure?

    Please let me know in detail.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    The first just declares FssIn and Fsearch as variables of type PATH_FLT_SNAPSHOT_STRUCT. And fss_leg_found is a pointer variable, which means it can hold the address of a PATH_FLT_SNAPSHOT_STRUCT object (but is not such an object itself).

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