enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;
printf("%d",);
getch();
}
what will be the output of the above program
If u observe the program carefully,you will come to know
ther is syntax error.
enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;
printf("%d",);//printf("%d",) error maker
getch();
}
If u put it
printf("%d",day);
then it will print 20 because 20 is the latest value
assigned for day.
| Is This Answer Correct ? | 8 Yes | 0 No |
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Is file a keyword in c?
What is auto keyword in c?
What is Generic pointer? What is the purpose of Generic pointer? Where it is used?
What is the use of void pointer and null pointer in c language?
What is a macro in c preprocessor?
How do you determine the length of a string value that was stored in a variable?
How many keywords (reserve words) are in c?
How many parameters should a function have?
we have a 3litres jug and a 5 litres jug and no measures on them. using these two jugs how can we measure 4 litres of water?
How do I declare a pointer to an array?
How can a program be made to print the name of a source file where an error occurs?