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
Is c still used?
What is the size of enum in bytes?
How do you determine a file’s attributes?
What is static volatile in c?
What is the condition that is applied with ?: Operator?
How do you determine the length of a string value that was stored in a variable?
What is a program?
Is linux written in c?
When should the const modifier be used?
What is the sizeof () a pointer?
What is a const pointer in c?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Explain what are run-time errors?
Explain what are multidimensional arrays?
Is c procedural or object oriented?