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 |
Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates
Program to simulate second clock
What is diffrance between declaration and defination of a variable or function
What is the use of extern in c?
what is software?
Write a program to generate prime factors of a given integer?
If input is 123 then how to print 100 and 20 and 3 seperately?
Define macros.
suppose there are five integers write a program to find larger among them without using if- else
what is the difference b/w NULL and null?
Tell us the difference between these two : #include"stdio.h" #include<stdio.h> define in detial.
Which of the Following will define a type NODE that is a node in a Linked list? A)struct node {NODE*next;int x;};type def struct node NODE; B)typedef struct NODE {struct NODE *next;int x;}; C)typedef struct NODE {NODE *next;int x;}; D)typedef struct {NODE *next;int x;}NODE;