adspace


Write a c pgm for leap year

Answer Posted / sarayu

void main()
{
int yr;
printf("Enter the year");
scanf("%d",yr);
if(yr%4==0)
printf("given year is leap year");
else
printf("It is not a leap year");
getch();
}

Is This Answer Correct ?    50 Yes 17 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1188


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2522


How do you determine the length of a string value that was stored in a variable?

1209


write a progrmm in c language take user interface generate table using for loop?

2129


What is the difference between union and anonymous union?

1413


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2218


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2743


what is ur strangth & weekness

2598


What are pointers? What are different types of pointers?

1276


What is variable initialization and why is it important?

1404


i have a written test for microland please give me test pattern

2816


How do you convert strings to numbers in C?

1351


swap 2 numbers without using third variable?

1217


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

2019


develop algorithms to add polynomials (i) in one variable

2269