Monday, July 27, 2009

Can you answer this programming problem?

Implement the function below in C language


const int LeapYear(const int year)


-The function will return 1 if the parameter yearis a leapyear.Otherwise it returns 0.


void Evaluate Year(const int year[ ],int n)


-This function will print the following:


1.)The number of invalid items, items which are less than 1900 will be considered invalid.


2.)The items which are leapyear awnd non-leapyear.





Then in the main function,randomize the items to be placed into the array .Randomize also the size of the array.A year will be considered leap-year if it is divisible by 4...hope youcan answer this problem...thank you...

Can you answer this programming problem?
Yes I can answer it.


No comments:

Post a Comment