#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


Please Help Members By Posting Answers For Below Questions

What is the best way to store flag values in a program?

550


What Is The Difference Between Null And Void Pointer?

612


How can I recover the file name given an open stream or file descriptor?

574


Explain enumerated types.

573


Where local variables are stored in c?

532






What is the function of multilevel pointer in c?

652


What is wrong with this code?

665


What is a constant?

610


What are the different data types in C?

702


c program to compute AREA under integral

1778


What is structure pointer in c?

550


What are the benefits of organizational structure?

545


What is auto keyword in c?

768


What is modifier & how many types of modifiers available in c?

580


What math functions are available for integers? For floating point?

596