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 / mahesh

b is answer

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can you determine the size of an allocated portion of memory?

1150


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

1132


List the difference between a "copy constructor" and a "assignment operator"?

1064


the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b

2753


Why & is used in c?

1247


What are the different types of control structures in programming?

1176


What is derived datatype in c?

1141


What is the purpose of clrscr () printf () and getch ()?

1112


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2473


For what purpose null pointer used?

1115


How does sizeof know array size?

1169


What is the use of clrscr?

1156


how is the examination pattern?

2062


Why is it usually a bad idea to use gets()? Suggest a workaround.

1867


Describe wild pointers in c?

1166