Write a c pgm for leap year
Answer Posted / vasile
int isLeap (int year)
{
if ((year % 4) || !(year % 100) && (year % 400))
return 0;
return 1;
}
| Is This Answer Correct ? | 26 Yes | 8 No |
Post New Answer View All Answers
Explain why C language is procedural?
What does emoji p mean?
Is c object oriented?
What do you mean by Recursion Function?
What is union in c?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is quick sort in c?
FILE *fp1,*fp2; fp1=fopen("one","w") fp2=fopen("one","w") fputc('A',fp1) fputc('B',fp2) fclose(fp1) fclose(fp2)} a.error b. c. d.
Why c is called free form language?
How can you be sure that a program follows the ANSI C standard?
Explain data types & how many data types supported by c?
Are pointers integers in c?
What is sizeof int in c?
Explain void pointer?
how to make a scientific calculater ?