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

What is composer phar?

1066


How to create a directory?

1078


Is php closing tag necessary?

1048


What is member function?

1109


What is string and its function?

1027


Where are cookies stored php?

958


Why php is widely used?

992


How does php work with apache?

1127


How to take a substring from a given string in php?

957


Tell me how to strip whitespace (or other characters) from the beginning and end of a string?

1019


Explain what are the different errors in php?

1037


Which function is used in php to count the total number of rows returned by any query?

1076


Explain me is multiple inheritance supported in php?

1110


What does type casting mean in php? Explain with an example?

1022


What is php stack?

1007