Define a struct type that represents a smartphone The struct
Define a struct type that represents a smartphone. The struct should store the following data: model (a character array of size 30), color (a character), and storage space (an integer). The type should be renamed from struct smartphone to Smartphone.
Solution
Answer:
struct smartphone{
char model[30];
char color;
int storageSpace;
};
typedef smartphone Smartphone;
