Which choice is not a valid type definition of a structure that contains x and y coordinates as integers, and that can be used exactly as shown for the variable named center?

Advertisement

coord center;
center.x = 5;
center.y = 3;

  • A
    typedef struct coord {
    int x;
    int y;
    };
  • B
    typedef struct coord {
    int x;
    int y;
    } coord;
  • C
    typedef struct {
    int x;
    int y;
    } coord;
  • D
    struct coord {
    int x;
    int y;
    };
    typedef struct coord coord;
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend