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
Differentiate fundamental data types and derived data types in C.
Can you please explain the difference between strcpy() and memcpy() function?
What is bash c?
Why do we use return in c?
in linking some of os executables are linking name some of them
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.
What are local variables c?
#include
swap 2 numbers without using third variable?
Explain what is wrong in this statement?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?
Is exit(status) truly equivalent to returning the same status from main?
hi, which software companys will take,if d candidate's % is jst 55%?