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 / rakesh kumar
Re-declaration error
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Write a program to print factorial of given number using recursion?
ATM machine and railway reservation class/object diagram
What is the difference between printf and scanf )?
What is a header file?
What does %c mean in c?
What is a macro in c preprocessor?
What are the different types of objects used in c?
How can I do serial ("comm") port I/O?
What are the Advantages of using macro
Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.
What is the use of ?
how should functions be apportioned among source files?
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
What are header files? What are their uses?
How to get string length of given string in c?