#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / subha raman
yeah..itz mainly syntax error..
there shud not be any declaration of variables..in
case "j"..it must be "case 2"only..
Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is d scanf?
write a program fibonacci series and palindrome program in c
What is the difference between a string and an array?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is zero based addressing?
What is an auto variable in c?
How can I direct output to the printer?
what do u mean by Direct access files? then can u explain about Direct Access Files?
What are the advantages and disadvantages of a heap?
What are linker error?
Add Two Numbers Without Using the Addition Operator
What is function prototype?
What is header file in c?
Can a void pointer point to a function?
How can I sort a linked list?