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


Please Help Members By Posting Answers For Below Questions

What is an example of structure?

584


Why c is known as a mother language?

636


What is the difference between procedural and functional programming?

515


What is gets() function?

664


How can you read a directory in a C program?

647






how can f be used for both float and double arguments in printf? Are not they different types?

604


What are the advantages of using linked list for tree construction?

639


What is c definition?

737


How many types of functions are there in c?

581


Is a house a mass structure?

636


What is pass by value in c?

593


Can we use visual studio for c?

544


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1623


What is console in c language?

600


What is the difference between #include and #include 'file' ?

602