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 do mean by network ?
the question is that what you have been doing all these periods (one year gap)
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
what do you mean by enumeration constant?
Tell me what is the purpose of 'register' keyword in c language?
What is masking?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
How can I convert a number to a string?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is the importance of c in your views?
Can two or more operators such as and be combined in a single line of program code?
How can I open files mentioned on the command line, and parse option flags?
What are the advantages of using Unions?
How can you restore a redirected standard stream?