Professional Documents
Culture Documents
Assignment 4 (Structures)
Assignment 4 (Structures)
Abdelhady Mostafa
3. Consider the following structure struct time {int hrs, mins, secs};
Define a structure variable time_now and initialize it to the current time at your
clock.
4. Create a structure called Volume that uses three variables of type Distance to model
the volume of a room. Initialize a variable of type Volume to specific dimensions
(Initialize), then calculate the volume it represents, and print out the result.