#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
Not all reserved words are written in lowercase. TRUE or FALSE?
What's the total generic pointer type?
if p is a string contained in a string?
How will you divide two numbers in a MACRO?
What are the types of data files?
plz let me know how to become a telecom protocol tester. thank you.
What is difference between arrays and pointers?
What is main function in c?
Why do we use header files in c?
How we can insert comments in a c program?
Do you know the use of 'auto' keyword?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is null pointer in c?
What is #ifdef ? What is its application?
What is hungarian notation? Is it worthwhile?