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
how to capitalise first letter of each word in a given string?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Is main a keyword in c?
develop algorithms to add polynomials (i) in one variable
Explain what does the format %10.2 mean when included in a printf statement?
Why is c called a mid-level programming language?
i have a written test for microland please give me test pattern
How can I automatically locate a programs configuration files in the same directory as the executable?
Explain what is the difference between #include and #include 'file' ?
What are the 5 types of inheritance in c ++?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is a static variable in c?
Is stack a keyword in c?
Can a program have two main functions?
why do some people write if(0 == x) instead of if(x == 0)?