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


can we pass coditions in swtich case?

Answers were Sorted based on User's Feedback



can we pass coditions in swtich case?..

Answer / jagadishkumar.reddy

using switch statement we cant pass any Condition.
switch (expression)
{
case constant-expression:
statement
jump-statement
[default:
statement
jump-statement]
}
expression can be intergral or string.

Is This Answer Correct ?    2 Yes 0 No

can we pass coditions in swtich case?..

Answer / nikitha

No we cannot pass condition in switch

ex:
int a, b;
string str1;
switch(a+b)
Do some thing like this u will get compile error...

Is This Answer Correct ?    1 Yes 0 No

can we pass coditions in swtich case?..

Answer / lavanya

Yes, we can pass conditions to switch statement.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

is it possible to use web site without web server from remote place?

1 Answers   ABC, Mannar Company, Quadrant,


Define the steps to set up validation control.

0 Answers  


Web API uses which library for JSON serialization?

0 Answers  


what is webpart? what r the parts in this webpart (zone)

2 Answers  


Explain the main function of razor in asp.net? : asp.net mvc

0 Answers  


What are the new navigation controls in asp.net 2.0?

0 Answers  


Usage of web.configuration ?

3 Answers   Microsoft,


What are the different web pages?

0 Answers  


What are the differences between the response.write() and response.output.write()?

0 Answers  


what is structured data format?

2 Answers  


List some of the important session state modes of asp.net.

0 Answers  


What is the DLL Hell Problem?

2 Answers  


Categories