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

int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

754


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

643


What is getche() function?

609


Explain what happens if you free a pointer twice?

614


What is double pointer?

560






What does the c in ctime mean?

571


C program to find all possible outcomes of a dice?

1855


can we have joblib in a proc ?

1656


Wt are the Buses in C Language

2753


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

582


Why is this loop always executing once?

617


How can I get random integers in a certain range?

613


What is the role of && operator in a program code?

568


What is a loop?

556


What is operator precedence?

644