enum DAY
{
sunday,
monday,
tuesday
};
enum EDAYS
{
friday,
saturday,
sunday
};
void main()
{
int i =0;
if( i == sunday)
{
printf("%d",i);
}
}
what would be the output?
Answers were Sorted based on User's Feedback
Answer / shankar
Multiple declaration for 'sun'
An error comes!!!!!!
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mukesh_biswajeet
The Answer or output is 0
Sunday is at zero[0] positon in Enum Day
and therefore the condition becomes true and
the initialised value of i is printed.
| Is This Answer Correct ? | 0 Yes | 2 No |
void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }
write a program of bubble sort using pointer?
I want tcs placement papers of 2004-2009 , its urgent
IS it possible to define a zero sized array in c.if it is possible how can the elements of that array can be accessed.array index starts from zero,if it is possible to define zero sized array how can be its first element can be accesseed.
What is an example of enumeration?
What are the 4 types of organizational structures?
Explain what are run-time errors?
Explain what are reserved words?
Wt are the Buses in C Language
Is it possible to create recycle bin in mobiles?
void main() { char c; while(c=getchar()!='\n') printf("%d",c); } o/p=11 why?
In which category does main function belong??