subject
Computers and Technology, 16.04.2020 02:58 mona92

*Notice: I can only edit the part where it says in /* Your solution goes here */ the other part of the code i can't touch it please the solution should be inside that part ad using the code providedQuestion 1Define a function SetTime, with int parameters hoursVal and minutesVal, that returns a struct of type TimeHrMin. The function should assign TimeHrMin's data member hours with hoursVal and minutes with minutesVal.#include typedef struct TimeHrMin_struct {int hours;int minutes;} TimeHrMin;/* Your solution goes here */int main(void) {TimeHrMin studentLateness;int hours;int minutes;scanf("%d %d", &hours, &minutes);studentLateness = SetTime(hours, minutes);printf("The student is %d hours and %d minutes late.\n", studentLateness. hours, studentLateness. minutes);return 0;}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:10
In mathematics and computer science, a set is a collection in which order does not matter and there are no duplicates. in this problem, we are going to to define a class which wil allow us to create an object to represent a set of integers. you will write a program set.java to define the class set. each instance of the class set will be an object representing a set of integers.
Answers: 3
question
Computers and Technology, 22.06.2019 03:20
Which of these is a benefit of social networking? oa. hiding your true identity from friendsob. avoiding talking to people in personoc. spending time with friends instead of studyingod. connecting with new people
Answers: 2
question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
You know the right answer?
*Notice: I can only edit the part where it says in /* Your solution goes here */ the other part of t...
Questions
question
Mathematics, 05.05.2020 01:17
question
Mathematics, 05.05.2020 01:17
question
English, 05.05.2020 01:17
question
Mathematics, 05.05.2020 01:17
question
English, 05.05.2020 01:17
question
Chemistry, 05.05.2020 01:17
Questions on the website: 13722361