Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

To find out the current year is leap year or not which
date() function we've to use.Give the syntax also

Answer Posted / krishna reddy ketha

NOTE:
IT IS ONLY FOR FIND OUT THE GIVEN YEAR IS
LEAP YEAR OR NOT.

CONDITION:
/*
leap year:

// is divisible by 4 and not by 100
// is divisible by 400
*/


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

printf("%d is a LEAP YEAR" + year);
else
printf("%d is NOT a LEAP YEAR" + year);

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to destroy a cookie?

946


Is empty java?

983


Is php 5 still supported?

953


How to connect to mysql from a php script?

1012


What is a substring in php?

1019


Xplain is it possible to use com component in php?

890


What is php programming used for?

961


For image work which library is used in php?

960


What is reference variable php?

972


Where is the submitted form data stored?

1027


How you can update memcached when you make changes to php?

1044


What is a composer in PHP?

910


What are the differences between session and cookie?

968


Describe the security vulnerability of PHP?

1002


Tell me what is the definition of a session?

995