ch 9/e5.c
//Function to update date by one day	

Function to update date by one day
Function to update date by one day
struct date dateUpdate ( struct date today )
	{
		int numberOfDays ( struct date d ) ;
		struct date tomorrow ;
		if ( today.day != numberOfDays ( today ) ) 
			tomorrow = ( struct date ) { .day = today.day + 1, .year = today.year, .month = today.month } ;
		else if ( today.month == 12 )
			tomorrow = ( struct date ) { 1, 1, today.year + 1 } ;
		else
			tomorrow = ( struct date ) { 1, today.month + 1, today.year } ;
		return tomorrow ;
	}
struct date dateUpdate ( struct date today ) { int numberOfDays ( struct date d ) ; struct date tomorrow ; if ( today . day != numberOfDays ( today ) ) tomorrow = ( struct date ) { . day = today . day + 1 , . year = today . year , . month = today . month } ; else if ( today . month == 12 ) tomorrow = ( struct date ) { 1 , 1 , today . year + 1 } ; else tomorrow = ( struct date ) { 1 , today . month + 1 , today . year } ; return tomorrow ; }
Function to update date by one day
Function to update date by one day
//Function decalaration
 //Declaring structure date variable to store updated date
 //Calculating tomorrow's date
 //Not the last day of the month
 //Last day of the year	
 //Last day of the month
