Using your previous code for Date and Time structure, create a new structure called DateTime using
nested structures concept. It should have 2 members – Date & Time. Initialise your object with the
current date & time. Create 2 functions to perform the following operations:
● Add 2 DateTime objects together
● Subtract 2 DateTime objects together
previous questions were:
Create a Date structure which has the properties Day, Month, Year. Create an object and initialize it with
the current date. Take user input of D days, then modify your original date and print on the screen the
date after D days have passed.
and
Create a Time structure which has the properties Hours, Minutes, and Seconds. Create an object and
initialize it with the current time. You have a meeting today at a certain time. Take this time as input into
a new object. Then, subtract the 2 times and print on the screen the remaining duration until the
meeting.
in c language