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

What does p mean in physics?

1037


What are called c variables?

1057


What is a #include preprocessor?

1149


What is the code for 3 questions and answer check in VisualBasic.Net?

2157


What are enums in c?

1196


What does the format %10.2 mean when included in a printf statement?

1649


What is the difference between functions getch() and getche()?

1096


What do you mean by dynamic memory allocation in c?

1100


what are bit fields in c?

1706


Write a program to generate random numbers in c?

1095


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1074


What does struct node * mean?

1013


Explain the properties of union. What is the size of a union variable

1186


Explain null pointer.

1111


Difference between pass by reference and pass by value?

1158