Question: C programming, please do 1,2,3 1. (3 pts) Define a struct type that represents a smartphone. The struct should store the following data: model (a

C programming, please do 1,2,3

C programming, please do 1,2,3 1. (3 pts) Define a struct type

1. (3 pts) 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. 2. (5 pts) Write a function called set_smartphone ), which accepts, a string, a character, an integer, and a pointer to a Smartphone. The function indirectly sets (via the pointer to the Smartphone) each component in the struct to the values passed into the function. The function does not return a value. 3. (7 pts) Write a function recursively_count vowels ( which accepts a pointer to a string, and any other parameters you see fit, and recursively counts the number of vowels in the provided string. This function should return the number of vowels in the string

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!