#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / shruti
nopes we cannot use 'j'... because single qutoes ' ' are
used only for character value.. i.e if it was
char i
switch(i)
then we cud have used it like that..
hence in our case,
it will give a compiler error...
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
Explain pointers in c programming?
What is enumerated data type in c?
Can include files be nested? How many levels deep can include files be nested?
What does void main return?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is a list in c?
What is p in text message?
What is const volatile variable in c?
Why void is used in c?
What does p mean in physics?
Tell me is null always defined as 0(zero)?
What are the advantages and disadvantages of a heap?
What is the advantage of c?
How can I delete a file?
What is FIFO?