Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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


Please Help Members By Posting Answers For Below Questions

Where static variables are stored in c?

1042


Why is it that not all header files are declared in every C program?

1145


What are the types of operators in c?

1002


How do you declare a variable that will hold string values?

1105


What are the 4 types of programming language?

1049


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

994


What is file in c preprocessor?

1089


Find MAXIMUM of three distinct integers using a single C statement

1014


Write a factorial program using C.

1017


What is volatile keyword in c?

997


how to find binary of number?

4337


Why is struct padding needed?

1031


Why malloc is faster than calloc?

1014


Why is c platform dependent?

1023


What is wrong with this statement? Myname = 'robin';

1264