#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
Answer Posted / moolshankershukla
#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case j: printf("BAD");
break;
}
}
given above program is wrong only we can one changes and
will be run .
correct program is:
#include
main()
{
int i=1,j=2;
switch(i)
{
case 1: printf("GOOD");
break;
case 2: printf("BAD");
break;
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is c mainly used for?
What are the different file extensions involved when programming in C?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
How many bytes is a struct in c?
What is the meaning of ?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
simple program of graphics and their output display
What is spaghetti programming?
What is the use of getch ()?
What is a program flowchart and how does it help in writing a program?
Add Two Numbers Without Using the Addition Operator
Is array a primitive data type in c?
What are the 5 types of organizational structures?
What do the functions atoi(), itoa() and gcvt() do?
What are variables c?