#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
What is structure pointer in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
What is use of bit field?
Is there a way to switch on strings?
Do variables need to be initialized?
What is getch c?
What is an array? What the different types of arrays in c?
Did c have any year 2000 problems?
Why enum is used in c?
How can I remove the trailing spaces from a string?
Explain what are the standard predefined macros?
What is indirection?
Write program to remove duplicate in an array?
Why string is used in c?
What are identifiers c?