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 is the use of sizeof?

546


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1487


What is #include stdio h?

675


When is the “void” keyword used in a function?

826


How pointer is different from array?

573






please send me the code for multiplying sparse matrix using c

1717


What is c language & why it is used?

574


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1924


Differentiate between the expression “++a” and “a++”?

695


What is extern c used for?

563


develop algorithms to add polynomials (i) in one variable

1731


What is typedef?

659


What is the difference between array and pointer in c?

569


How can you increase the size of a statically allocated array?

608


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2712