Write a c pgm for leap year
Answer Posted / s.gayathri
void main()
{
int a,y;
clrscr();
printf("enter the year");
scanf("%d",y);
a=y%4;
if(a==1);
printf("leep year");
| Is This Answer Correct ? | 8 Yes | 19 No |
Post New Answer View All Answers
Can the sizeof operator be used to tell the size of an array passed to a function?
Write a program to show the change in position of a cursor using c
What is c preprocessor mean?
Explain what are binary trees?
Is it better to bitshift a value than to multiply by 2?
which type of aspect you want from the student.
find the output? void r(int a[],int c, int n) { if(c>n) { a[c]=a[c]+c; r(a,++c,n); r(a,++c,n); } } int main() { int i,a[5]={0}; r(a,0,5); for(i=0;i<5;i++) printf("\n %d",a[i]); getch(); }
What is the translation phases used in c language?
What is the difference between malloc calloc and realloc in c?
write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Explain about the constants which help in debugging?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What is wrong with this declaration?
Is c weakly typed?