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
Are the variables argc and argv are local to main?
Write a program to reverse a string.
What is the purpose of void pointer?
Can the “if” function be used in comparing strings?
Differentiate between new and malloc(), delete and free() ?
Explain what are reserved words?
What is the -> in c?
write a program to display all prime numbers
What is variable initialization and why is it important?
What is the difference between exit() and _exit() function in c?
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......
What is difference between structure and union?
What is a newline escape sequence?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
What does a pointer variable always consist of?