#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 how can a program be made to print the line number where an error occurs?
What is the translation phases used in c language?
Explain the process of converting a Tree into a Binary Tree.
What is c language and why we use it?
How can I discover how many arguments a function was actually called with?
What is the general form of #line preprocessor?
what do you mean by enumeration constant?
What are keywords c?
What does main () mean in c?
Explain union.
Why is c still so popular?
How will you find a duplicate number in a array without negating the nos ?
How many parameters should a function have?
What is wrong in this statement? scanf(ā%dā,whatnumber);
How can I manipulate individual bits?