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;

 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 s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site