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


Please Help Members By Posting Answers For Below Questions

What should malloc() do? Return a null pointer or a pointer to 0 bytes?

803


How many levels of indirection in pointers can you have in a single declaration?

800


i got 75% in all semester am i eligible for your company

1931


What is the explanation for prototype function in c?

727


What is the difference between c &c++?

814






Explain what are binary trees?

809


Can a variable be both constant and volatile?

791


What is const volatile variable in c?

757


What are c preprocessors?

879


How can you tell whether a program was compiled using c versus c++?

813


Explain setjmp()?

812


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2621


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2212


What is c language and why we use it?

784


Explain the use of fflush() function?

815