Question: 2 3 . Given the following code fragment struct card { char * face; char * suit; } ; Which of the following are correct:

23. Given the following code fragment
struct card {
char *face;
char *suit;
};
Which of the following are correct:
A. struct card a ={"Two", "Hearts"};
B. struct card b; b.face = "Two"; b.suit="Hearts";
C. typedef struct card Card;
Card c ={"Four", "Spades"};
D. All of the above.
E. None of the above.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!