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...

f1()
{
f(3);}
f(int t)
{
switch(t);
{
case 2: c=3;
case 3: c=4;
case 4: c=5;
case 5: c=6;
default: c=0;}
value of c?

Answer Posted / madhu

As t = 3,it goes to case 3.But there is no break in that
case so it proceeds further down to default and c becomes 0.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between fread and fwrite function?

1091


Can we change the value of constant variable in c?

1063


What is a pragma?

1131


What are the 5 data types?

1145


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1257


What is the use of parallelize in spark?

1030


What is the use of a conditional inclusion statement in C?

1070


When should a type cast not be used?

1073


What is the explanation for cyclic nature of data types in c?

1221


What is the heap in c?

1085


Write a program that accept anumber in words

1764


can anyone suggest some site name..where i can get some good data structure puzzles???

2087


Explain how do you view the path?

1183


Here is a neat trick for checking whether two strings are equal

1023


What does struct node * mean?

1026