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
What are the types of type specifiers?
Explain what is the general form of a c program?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
What is a good data structure to use for storing lines of text?
please send me the code for multiplying sparse matrix using c
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
I need testPalindrome and removeSpace
#include
Is c is a middle level language?
Is that possible to add pointers to each other?
What are types of preprocessor in c?
What are the advantages of c language?
What are pointers? What are stacks and queues?
What is function prototype in c with example?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
Write a c program to demonstrate character and string constants?