#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 do you define structure?
What is wrong with this code?
What are keywords in c with examples?
What is structure and union in c?
What is the difference between procedural and functional programming?
What is the most efficient way to count the number of bits which are set in an integer?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
will u please send me the placement papers to my mail???????????????????
Do pointers store the address of value or the actual value of a variable?
Explain the advantages and disadvantages of macros.
Explain the use of bit fieild.
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above
What is difference between array and pointer in c?
When do we get logical errors?