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 / sivasankar.a

the answer is d)none because there in no break statement

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between scanf and fscanf?

1220


Can you write the algorithm for Queue?

2051


How do you generate random numbers in C?

1164


Can you please explain the difference between syntax vs logical error?

1145


What is a stream water?

1149


What is the most efficient way to store flag values?

1148


For what purpose null pointer used?

1029


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2584


What is enumerated data type in c?

1045


Explain what is the purpose of "extern" keyword in a function declaration?

1043


Explain what is the difference between a free-standing and a hosted environment?

1139


What is a global variable in c?

972


Tell me what is the purpose of 'register' keyword in c language?

984


How can you return multiple values from a function?

1075


What does c in a circle mean?

1036