Write a c pgm for leap year

Answers were Sorted based on User's Feedback



Write a c pgm for leap year..

Answer / 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

More C Interview Questions

What is the difference between typedef and #define?

0 Answers  


Write a program in C to convert date displayed in gregorian to julian date

0 Answers   HCL, Wipro,


Binary tree traversing

1 Answers   Qualcomm,


24.what is a void pointer? 25.why arithmetic operation can’t be performed on a void pointer? 26.differentiate between const char *a; char *const a; and char const *a; 27.compare array with pointer? 28.what is a NULL pointer? 29.what does ‘segmentation violation’ mean? 30.what does ‘Bus Error’ mean? 31.Define function pointers? 32.How do you initialize function pointers? Give an example? 33.where can function pointers be used?

2 Answers  


What are data breakpoints?

3 Answers   Adobe,






What is the difference between ++a and a++?

0 Answers  


how to compare two strings without using strcmp() function??

1 Answers  


Was 2000 a leap year?

0 Answers  


Where can I get an ansi-compatible lint?

0 Answers  


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

0 Answers  


What is the use of void pointer and null pointer in c language?

0 Answers  


List the different types of c tokens?

0 Answers  


Categories