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

6

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to reverse a linked list in c.

1133


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1919


List some of the static data structures in C?

1202


Is it possible to pass an entire structure to functions?

998


Explain the use of #pragma exit?

1181


What is binary tree in c?

1105


What is a example of a variable?

1023


What is abstract data structure in c?

1049


what is the function of pragma directive in c?

1123


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1058


Is javascript written in c?

1065


What are the types of pointers in c?

1029


What is the difference between procedural and declarative language?

1145


What is the difference between int main and void main in c?

1181


Explain how can a program be made to print the line number where an error occurs?

1219