int main()
{
int i=1;
switch(i)
{
case '1':
printf("hello");
break;
case 1:
printf("Hi");
break;
case 49:
printf("Good Morning");
break;
}
return 0;
}
Answer Posted / hussain reddy
error because duplicate case values
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
define string ?
Why doesn't C support function overloading?
What is formal argument?
Is there a built-in function in C that can be used for sorting data?
Is null valid for pointers to functions?
Is c is a high level language?
What is volatile keyword in c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
Is stack a keyword in c?
What is equivalent to ++i+++j?
How to declare pointer variables?
What is a c token and types of c tokens?
What is the difference between variable declaration and variable definition in c?
What is pointer to pointer in c with example?
Explain how can you determine the size of an allocated portion of memory?