enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;
printf("%d",);
getch();
}
what will be the output of the above program
Answer Posted / shrikant auti
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 |
Post New Answer View All Answers
What does s c mean on snapchat?
I have seen function declarations that look like this
Can a variable be both const and volatile?
Lists the benefits of c programming language?
How can I insert or delete a line (or record) in the middle of a file?
What is const volatile variable in c?
How many data structures are there in c?
Why static variable is used in c?
Tell me the use of bit field in c language?
Write a program to generate random numbers in c?
What should malloc() do?
How can I invoke another program or command and trap its output?
Describe wild pointers in c?
Explain how do you convert strings to numbers in c?
What is #include conio h?