Question: Task 1: Give answers to the following. Write C++ code fragments for the following. 1. Declare a structure Time with fields hour, minute and second.

Task 1: Give answers to the following. Write C++ code fragments for the following. 1. Declare a structure Time with fields hour, minute and second. 2. Declare a variable of type Time. 3. Declare a variable of type Time, a pointer to Time and an array of 10 Times. Assign the address of the variable to the pointer. 4. Using pointer variable set the value of hour to 5, minute to 10 and second to 50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
