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

Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?

0 Answers   Siebel Systems,


What is the used of "ispostback" property?

0 Answers  


What is the main use of Response.Output.Write()?

4 Answers   Siebel,


What is the Intermittent crashing of application in production?

0 Answers   Microsoft,


What are the types of assemblies and where can u store them and how ?

1 Answers   Patni,


What are the differences between Dataset and DataReader?

3 Answers   Accenture,


What is the latest version of asp.net?

0 Answers  


Is it possible to use two versions of assembly at the same time?If possible explain with code?

3 Answers   Tech Mahindra,


Is it possible to create web application with both webforms and mvc?

0 Answers  


what is satellite assembly in .net?

4 Answers   iSoft,


Advantage of Update Panel over Asp.net 2.0 + C#+ Microsoft Ajax 1.0

1 Answers   InfoSpace,


What is clr? Difference between clr & cts?

0 Answers  


Categories