#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
How many types of operator or there in c?
What's the total generic pointer type?
In a byte, what is the maximum decimal number that you can accommodate?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is #include called?
What language is lisp written in?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is linear search?
Why is c called c not d or e?
Can the “if” function be used in comparing strings?
What is c language and why we use it?
What are pointers really good for, anyway?
How does placing some code lines between the comment symbol help in debugging the code?
What is the explanation for modular programming?
what is stack , heap ,code segment,and data segment