#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / moolshankershukla
#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
given above program is wrong only we can one changes and
will be run .
correct program is:
#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case 2: printf("BAD");
break;
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
Sir i need notes for structure,functions,pointers in c language can you help me please
What is the significance of scope resolution operator?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
List a few unconditional control statement in c.
Differentiate between Macro and ordinary definition.
Was 2000 a leap year?
What are c preprocessors?
How do we make a global variable accessible across files? Explain the extern keyword?
Write a program with dynamically allocation of variable.
What is the use of getch ()?
Explain what’s a signal? Explain what do I use signals for?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is a #include preprocessor?