Question: Write a function called hms_to_secs() that takes three int values for hours, minutes, and secondsas arguments, and returns the equivalent time in seconds (type long).
Write a function called hms_to_secs() that takes three int values for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds (type long). Function prototypes is given below: long hms_to_secs(int hrs, int mins, int secs);
Step by Step Solution
3.43 Rating (159 Votes )
There are 3 Steps involved in it
include include long hmstosecsint hr... View full answer
Get step-by-step solutions from verified subject matter experts
