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 / srsabariselvan
The program Results in Error.
it will shows error "Duplicate case".
because '1' is equal to 49(ASCII of character 1).
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Why isn't it being handled properly?
What are multibyte characters?
Does free set pointer to null?
What is array of structure in c?
What is data structure in c programming?
What is void main ()?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What is %d used for?
What is dangling pointer in c?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is strcmp in c?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
please explain every phase in the "SDLC" in the dotnet.
what is the structure pointer?