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

Do you know null pointer?

1078


main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

1646


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

2403


How can I find out if there are characters available for reading?

1165


What is a pointer in c?

1695


Write a program to swap two numbers without using a temporary variable?

1181


how can I convert a string to a number?

1138


why we wont use '&' sing in aceesing the string using scanf

2427


How do you redirect a standard stream?

1152


How do you initialize pointer variables?

1151


Give the rules for variable declaration?

1218


What is variables in c?

1096


How can I read data from data files with particular formats?

1093


What are the features of c language?

1125


What is atoi and atof in c?

1134