#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / pravin
if we use the single qutoes' 'at 1 and j the rest of
program is right because we already decleared the value of i
and i=1 .
so output should be "GOOD" only. (without" ")
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the best way to store flag values in a program?
What Is The Difference Between Null And Void Pointer?
How can I recover the file name given an open stream or file descriptor?
Explain enumerated types.
Where local variables are stored in c?
What is the function of multilevel pointer in c?
What is wrong with this code?
What is a constant?
What are the different data types in C?
c program to compute AREA under integral
What is structure pointer in c?
What are the benefits of organizational structure?
What is auto keyword in c?
What is modifier & how many types of modifiers available in c?
What math functions are available for integers? For floating point?