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 1f in c?

2730


What functions are used for dynamic memory allocation in c language?

1215


What are variables and it what way is it different from constants?

1285


What is the value of a[3] if integer a[] = {5,4,3,2,1}?

1148


What are the properties of union in c?

1111


How do you print only part of a string?

1072


code for find determinent of amatrix

2016


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1175


What are extern variables in c?

1038


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1067


Write a program to print factorial of given number without using recursion?

1046


For what purpose null pointer used?

1117


What is the difference between #include and #include 'file' ?

1121


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

2067


What is difference between function overloading and operator overloading?

1141