answersLogoWhite

0


Best Answer

int isleap(int year) {

return year % 4 0 && year % 400 != 0);

}

The rule is that years divisible by 4 are leap, except that century years not divisible by 400, such as 2100, are not leap. The question stated a range of 2000 to 2500, so the answer does not address non Gregorian calendars or the shift between Julian and Gregorian.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program which takes a year as an argument and returns 1 if the year is a leap year or returns 0 if the year is not leap year use to display all the leap years between 2000 and 2500?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between echo and ' ' in unix?

Echo is a program. '' is not a program. '' does not perform any action. Echo returns what you type. '' does not.


A function prime that returns if its argument is a prime no or returns zero?

prime number


Size of operator?

The sizeof() operator returns the number of bytes required to represent its argument.


What is function in MSEXCEL?

They are pre programmed commands (functions) that the user needs to make operational demands on the spreadsheet. i.e. DAY Converts a serial number to a day of the month DAYS360 Calculates the number of days between two dates based on a 360-day year EDATE Returns the serial number of the date that is the indicated number of months before or after the start date AND Returns TRUE if all of its arguments are TRUE FALSE Returns the logical value FALSE IF Specifies a logical test to perform NOT Reverses the logic of its argument OR Returns TRUE if any argument is TRUE TRUE Returns the logical value TRUE


What module returns a value back to the part of the program that called it?

A function. You can have a function that returns but doesn't return a value with it.


Difference between sizeof and strlen?

The sizeof operator returns the total size, in bytes, of the given operand, whereas the strlen function returns the number of characters in the argument up to but not including the first null-terminator.Consider a character buffer allocated 50 bytes to which you assign the string "Hello world". The sizeof operator will return 50, but the strlen function returns 11.


Can you use this program to figure both State and Federal returns?

yes


How did the characters of Tracy beaker returns get on to this program?

Most of them belong to an agency.


What is the use of macro date?

it returns the date your program was compiled in a string


What happens if the argument to exec is not executable?

If command is not specified, a non-interactive shell exits, unless the shell option exefail is enabled, in which case if returns failure. Returns if file cannot be executed.


Can you use the PMT function in Excel to display dates in many different formats?

The PMT function returns the payment amount for a loan, so it has nothing to do with how dates are displayed. It returns numbers.


what is a program that searches the web for keywords then returns a list is called a?

Search engine