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 is s or c?

1014


difference between native and cross compilers

2080


What is a wrapper function in c?

1075


Disadvantages of C language.

1046


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1051


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

1108


show how link list can be used to repersent the following polynomial i) 5x+2

2191


What is static volatile in c?

976


Explain how do you list a file’s date and time?

988


What are header files and what are its uses in C programming?

1133


How can I delete a file?

1016


What is 1d array in c?

1029


What are reserved words with a programming language?

1055


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1913


Explain do array subscripts always start with zero?

1175