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

consider the following program sigment
int n,sum=1;
switch(n) {
case 2:sum=sum+2;
case 3:sum*=2;
break;
default:sum=0;}
if n=2, what is the value of sum
a.0
b.6
c.3
d.none

Answer Posted / roopa

The anser is d i.e. NONE.
Case 2 does not have the break statement.
so sum becomes 8

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the most efficient way to store flag values?

1149


What is the use of in c?

972


What is pointer to pointer in c language?

1079


How can I trap or ignore keyboard interrupts like control-c?

1036


What is the argument of a function in c?

1016


What is binary tree in c?

1050


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

2083


Write a program in c to replace any vowel in a string with z?

1091


what do the 'c' and 'v' in argc and argv stand for?

1131


What are runtime error?

1102


Explain how does free() know explain how much memory to release?

1030


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1355


What is hash table in c?

999


How would you rename a function in C?

1015


What is variable declaration and definition in c?

872