Question: typedef struct Data_struct { int itemCount; double price; } Data; int main(void) { int number = 3; double price = 20.0; double total; Data myData

typedef struct Data_struct { int itemCount; double price; } Data; int main(void) { int number = 3; double price = 20.0; double total; Data myData = {number, price}; total = totalPrice(&myData); printf("Total Price: %.Of ", total); return 0; } Given the above, write the signature of the totalPrice function, i.e. everything up to but not including the {} for the function. For full marks, you must give the most efficient. Use as few spaces as possible in your answer. If needed use my Data as the parameter name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
