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

f1()
{
f(3);}
f(int t)
{
switch(t);
{
case 2: c=3;
case 3: c=4;
case 4: c=5;
case 5: c=6;
default: c=0;}
value of c?

Answer Posted / madhu

As t = 3,it goes to case 3.But there is no break in that
case so it proceeds further down to default and c becomes 0.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer and structure in c?

1283


Write a program to print numbers from 1 to 100 without using loop in c?

1138


What does char * * argv mean in c?

1121


write a program to rearrange the array such way that all even elements should come first and next come odd

2355


Why header file is used in c?

1161


How to declare a variable?

1073


what is the role you expect in software industry?

2202


Explain how to reverse singly link list.

1204


Explain what is meant by high-order and low-order bytes?

1092


explain what is an endless loop?

1147


What is a pragma?

1178


What are types of functions?

1080


What is equivalent to ++i+++j?

1150


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1994


what are the advantages of a macro over a function?

1193