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

Explain what is the difference between functions getch() and getche()?

1056


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1070


Why does everyone say not to use gets?

1107


Is the exit() function same as the return statement? Explain.

1102


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

1055


Explain how can you avoid including a header more than once?

1093


Are there namespaces in c?

1129


How do I round numbers?

1011


Is it possible to pass an entire structure to functions?

998


What is wrong with this program statement?

1038


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1034


What is stack in c?

1081


Discuss the function of conditional operator, size of operator and comma operator with examples.

1158


What is sizeof in c?

1012


please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics

3338