#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / suresh reddy
Compiler Error: Constant expression required in function
main
instead of using j u we can use case 'j' .
this is correct answer
Is This Answer Correct ? | 5 Yes | 5 No |
Post New Answer View All Answers
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
what are # pragma staments?
How can a number be converted to a string?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
What are the applications of c language?
What does *p++ do? What does it point to?
Tell me what is null pointer in c?
What is a function in c?
What are the advantages of Macro over function?
Give me the code of in-order recursive and non-recursive.
What is structure and union in c?
Give the rules for variable declaration?
What is structure pointer in c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above