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

List some of the static data structures in C?

1244


What is c token?

1126


What is getch c?

1344


What is a pointer and how it is initialized?

1233


What is the difference between malloc() and calloc()?

1983


Can stdout be forced to print somewhere other than the screen?

1090


How can I generate floating-point random numbers?

1203


Why do we use namespace feature?

1121


Can a pointer be null?

1080


Can a file other than a .h file be included with #include?

1219


What is the maximum no. of arguments that can be given in a command line in C.?

1201


Differentiate between #include<...> and #include '...'

1116


Explain about C function prototype?

1142


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

2413


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1104