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 / poornima

Initially, switch statement is ended with semicolon.so
cases will not be alone without switch.It is compilation
error.
If semicolon is not there in switch statement answer is
zero.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between class and unio?

2306


how is the examination pattern?

1965


What are type modifiers in c?

1000


what is the different bitween abap and abap-hr?

2217


What is the most efficient way to store flag values?

1126


Explain bitwise shift operators?

1171


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1013


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

943


What is structure padding in c?

1058


Write a program to print all permutations of a given string.

1128


Where in memory are my variables stored?

1113


Explain what are header files and explain what are its uses in c programming?

1110


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1356


In a switch statement, what will happen if a break statement is omitted?

1006


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1243