#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
How can you find the exact size of a data type in c?
What does calloc stand for?
Why is python slower than c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
explain what is a newline escape sequence?
Why do we use stdio h and conio h?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Why is a semicolon (;) put at the end of every program statement?
What is the c language function prototype?
how can I convert a string to a number?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Is fortran still used in 2018?
What is structure data type in c?
What is the size of empty structure in c?