Home
Questions
Search
Forum
Contact
Guest Book
Polls!
Got a Question?
 
PREV
Programs
NEXT
 
(67 / 301)
 
 



Write a program to check if a given year is a leap year or not?




Use this if() condition to check if a year is a leap year or not


if(year % 4 == 0 && (year % 100 != 0 || year % 400 == 0))



PREV
COMMENTS                                  INDEX                                  PRINT
NEXT



Last updated: November 3, 2005

www.cracktheinterview.com - Your destination for the most common IT interview questions, answers, frequently asked interview questions (FAQ), C Programs, C Datastructures for technical interviews conducted by the top IT companies around the world!