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...

wat is output of the following

int main()
{
const int j=2;
int i;
switch(i)
{
case 1:break;
case j:break;
default:break;
}
}

Answer Posted / vikash gaurav

output will be nothing.... since i will have garbage value.
once going to switch case the value will not match with any
case so default value will be executed.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between Function to pointer and pointer to function

1032


What is a char in c?

945


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

2649


What is hash table in c?

985


Tell me the use of bit field in c language?

1026


If errno contains a nonzero number, is there an error?

1314


Are the outer parentheses in return statements really optional?

1066


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

1061


What are control structures? What are the different types?

1049


What are the features of c languages?

1043


Why we write conio h in c?

980


What does do in c?

1002


What is volatile, register definition in C

1068


What is the return type of sizeof?

1033


What is logical error?

1073