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 a buffer in c?

998


What is the difference between union and anonymous union?

1303


Why cant I open a file by its explicit path?

1034


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

1010


What are lookup tables in c?

1001


List the difference between a "copy constructor" and a "assignment operator"?

1015


What is the benefit of using an enum rather than a #define constant?

1236


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1091


What does c mean in basketball?

996


What is signed and unsigned?

1060


Can the sizeof operator be used to tell the size of an array passed to a function?

1114


write a progrmm in c language take user interface generate table using for loop?

2049


What are the 3 types of structures?

1030


What do you mean by invalid pointer arithmetic?

1074


How do I convert a string to all upper or lower case?

1110