Write a c pgm for leap year

Answer Posted / vasile

int isLeap (int year)
{
if ((year % 4) || !(year % 100) && (year % 400))
return 0;

return 1;
}

Is This Answer Correct ?    26 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an endless loop?

805


The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2938


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1627


How can you access memory located at a certain address?

668


Why void is used in c?

567






What is an identifier?

631


what are the 10 different models of writing an addition program in C language?

1442


Explain how do you determine a file’s attributes?

595


if p is a string contained in a string?

1406


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

2726


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4180


All technical questions

1512


Apart from dennis ritchie who the other person who contributed in design of c language.

814


Write a c program to demonstrate character and string constants?

1685


What is the mean of function?

650