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
What are the features of c languages?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
What is the benefit of using #define to declare a constant?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
Can variables be declared anywhere in c?
What does %c mean in c?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is indirection in c?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is call by value in c?
Describe how arrays can be passed to a user defined function
What is the difference between null pointer and wild pointer?
write a c program for swapping two strings using pointer
What is file in c language?
Is this program statement valid? INT = 10.50;