enum
{
SUNDAY,
MONDAY,
TUESDAY,
}day;
main()
{
day =20;

printf("%d",);
getch();
}
what will be the output of the above program



enum { SUNDAY, MONDAY, TUESDAY, }day; main() { day =20; printf("%d",); ..

Answer / 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

More C Interview Questions

disadvantages of realloc ?

1 Answers   HCL,


What are two dimensional arrays alternatively called as?

0 Answers  


What is the use of getch ()?

0 Answers  


Explain how do you list a file’s date and time?

0 Answers  


discuss the steps needed to get a program from source code to executable in a system?

1 Answers  






no consistent academics. how to answer the question

0 Answers  


without using control structures and control structures find the max and min of given 2 nos

1 Answers   HCL,


Wt are the Buses in C Language

0 Answers   Infosys,


What is "Duff's Device"?

0 Answers   Celstream,


what is the defrenece between structure and union

5 Answers   Aloha Technology,


Write a program to print “hello world” without using semicolon?

0 Answers  


What is %g in c?

0 Answers  


Categories