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
What are local static variables? How can you use them?
What will be your course of action for a push operation?
What does. int *x[](); means ?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is a #include preprocessor?
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Is there a way to compare two structure variables?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
What is selection sort in c?
Why c is called object oriented language?
what is the difference between 123 and 0123 in c?
Why is %d used in c?
Explain what is operator promotion?
What is wild pointer in c with example?