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 diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?

1 Answers  


main() { clrscr(); } clrscr();

6 Answers   ME, Wipro,


Difference between constant pointer and pointer to a constant.

1 Answers   Huawei,


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1 Answers   Zoho,


What are the difference between a free-standing and a hosted environment?

1 Answers   Infogain,


Where are c variables stored in memory?

1 Answers  


Describe advantages and disadvantages of the various stock sorting algorithms

1 Answers   Microsoft,


What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?

2 Answers  


Can a pointer be volatile in c?

1 Answers  


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

8 Answers   Aspire,


main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?

9 Answers   Ramco,


3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r

3 Answers   Huawei,


Categories