Question: Using C language Cpts 121 -Program Design and Development November 13, 2017 Your Name: TA's Name: Section : Take-Home Quiz 8 (15 pts) Structs, Recursion&More
Cpts 121 -Program Design and Development November 13, 2017 Your Name: TA's Name: Section : Take-Home Quiz 8 (15 pts) Structs, Recursion&More Pointers NOTE: Please submit your hard copy solution in lab this week 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. smartphone (), which accepts, a (5 pts) Write a function called set_ string, a character, an integer, and a pointer to a Smartphone. The function indirectly sets (via the pointer to the Smartphone) ea component in the struct to the values passed into the function. The function does not return a value. ch 3. (7 pts) Write a function recursively_ count_vowels(0 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
Get step-by-step solutions from verified subject matter experts
