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
Write a program to swap two numbers without using third variable?
What is hashing in c?
write a program in c language to print your bio-data on the screen by using functions.
Can 'this' pointer by used in the constructor?
How can I delete a file?
What is pointer & why it is used?
Why do we use c for the speed of light?
Difference between pass by reference and pass by value?
What is a dynamic array in c?
Explain the difference between null pointer and void pointer.
How can I remove the leading spaces from a string?
A global variable when referred to in another file is declared as this a) local variable b) external variable c) constant d) pointers
What does the message "automatic aggregate intialization is an ansi feature" mean?
Can we assign string to char pointer?
What the different types of arrays in c?