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

how to count no of words,characters,lines in a paragraph.

4376


What does *p++ do? What does it point to?

1003


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

994


how logic is used

1912


What are different types of variables in c?

1003


What is wrong with this program statement? void = 10;

1203


what do u mean by Direct access files? then can u explain about Direct Access Files?

2025


If fflush wont work, what can I use to flush input?

1044


What is data type long in c?

1023


What is difference between class and structure?

1062


What is c value paradox explain?

1016


What does it mean when a pointer is used in an if statement?

1059


Explain 'bus error'?

1009


Explain how can I make sure that my program is the only one accessing a file?

1161


What are the advantages of using macro in c language?

1065