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 can I write a function that takes a format string and a variable number of arguments?

1014


List the different types of c tokens?

1032


What is the use of define in c?

1024


What do the functions atoi(), itoa() and gcvt() do?

1153


What is the process of writing the null pointer?

1002


If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402

3875


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1051


Write a program to reverse a linked list in c.

1087


What is the difference between break and continue?

1436


What is far pointer in c?

1255


In a header file whether functions are declared or defined?

1096


What are the functions to open and close the file in c language?

1008


What does c mean in standard form?

1134


Explain modulus operator. What are the restrictions of a modulus operator?

982


Explain the concept and use of type void.

1075