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 #include and #include 'file' ?

1037


What are the types of data types and explain?

1077


Explain what are run-time errors?

1069


a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none

1134


Write the Program to reverse a string using pointers.

1003


largest Of three Number using without if condition?

1579


What are the different types of control structures?

1025


Explain how can I pad a string to a known length?

1179


Why c is called object oriented language?

1040


Explain what does the format %10.2 mean when included in a printf statement?

1341


Why can arithmetic operations not be performed on void pointers?

1020


Differentiate between null and void pointers.

1150


Describe the modifier in c?

1088


What is register variable in c language?

1017


What is pointer to pointer in c with example?

1045