Question: 1 . Identify the correct statement for creating an array of 1 0 items of type Sample _ t . The structure definition for Sample

1. Identify the correct statement for creating an array of 10 items of type Sample_t.
The structure definition for Sample_t is given below:
typedef struct Sample { char name[SIZE];
int number; float cost;
} Sample_t;
(a) Sample_t[10] mySample;
(b) struct mySample[10];
(c) struct Sample_t mySample[10];
(d) Sample_t mySample[10];
Noneoftheabove.

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 Programming Questions!