#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 do you mean by recursion in c?
What is the general form of a C program?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
largest Of three Number using without if condition?
What are loops in c?
Is c procedural or functional?
What is 1f in c?
What is typedef?
What is the use of structure padding in c?
how do you execute a c program in unix.
What is the difference between variable declaration and variable definition in c?
Why c is called object oriented language?
What are reserved words with a programming language?
provide an example of the Group by clause, when would you use this clause
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.