enum DAY
{
sunday,
monday,
tuesday
};
enum EDAYS
{
friday,
saturday,
sunday
};
void main()
{
int i =0;
if( i == sunday)
{
printf("%d",i);
}
}
what would be the output?
Answer Posted / shankar
Multiple declaration for 'sun'
An error comes!!!!!!
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
What is call by value in c?
Explain how do you search data in a data file using random access method?
Why do we need volatile in c?
How is a macro different from a function?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
When should the volatile modifier be used?
What are the valid places to have keyword “break”?
What is struct node in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
Is int a keyword in c?
What are the application of void data type in c?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Tell us the use of fflush() function in c language?