Search:

Type: Posts; User: MK27

Search: Search took 0.04 seconds.

  1. Replies
    24
    Views
    3,658

    The "??" was just to indicate that you're right,...

    The "??" was just to indicate that you're right, there could be an object name there, but there does not have to be, which means the struct is anonymous. The only object name we need is the name of...
  2. Replies
    24
    Views
    3,658

    There is such a thing as an "anonymous" struct. ...

    There is such a thing as an "anonymous" struct. It doesn't have a name. When I wrote you can do this:



    typedef struct ?? { int x; char y; } odredek;
    //don't really put ??
    odradek...
  3. Replies
    24
    Views
    3,658

    In fact, you can do this: typedef struct {...

    In fact, you can do this:



    typedef struct { int x; char *y; } odradek;

    odradek actual_odek;


    The datatype syntax is not half so dangerous as the poiner syntax ;)
Results 1 to 3 of 3