#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 size of a union variable?
What is difference between structure and union in c?
What are the 5 elements of structure?
What is the use of parallelize in spark?
What is #define in c?
What are the restrictions of a modulus operator?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Why we use conio h in c?
What is a const pointer?
What does main () mean in c?
what are non standard function in c
Explain what is the purpose of "extern" keyword in a function declaration?
Which is better oop or procedural?
What is the difference between memcpy and memmove?
program for reversing a selected line word by word when multiple lines are given without using strrev