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
Is there any data type in c with variable size?
Why header file is used in c?
formula to convert 2500mmh2o into m3/hr
How to write a code for reverse of string without using string functions?
What are void pointers in c?
What is the best organizational structure?
Under what circumstances does a name clash occur?
Are pointers integers in c?
please explain every phase in the "SDLC" in the dotnet.
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
#include
What is c value paradox explain?
What is the most efficient way to count the number of bits which are set in an integer?
What are preprocessor directives in c?
What is cohesion and coupling in c?