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
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
How do you determine the length of a string value that was stored in a variable?
write a progrmm in c language take user interface generate table using for loop?
What is the difference between union and anonymous union?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
what is ur strangth & weekness
What are pointers? What are different types of pointers?
What is variable initialization and why is it important?
i have a written test for microland please give me test pattern
How do you convert strings to numbers in C?
swap 2 numbers without using third variable?
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......
develop algorithms to add polynomials (i) in one variable