can we pass coditions in swtich case?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why mvc is better than asp.net? : Asp.Net MVC

473


Mention the execution process for managed code?

539


What is the difference between “Web.config” and “Machine.Config”?

702


What are the advantages of the code-behind feature?

546


What is in a session cookie?

542






What is Web API Routing?

609


How does u call and execute a sp in .net?

553


Can you change a master page dynamically at runtime? How?

511


9. Why should we hire you over the others waiting to be interviewed?

2141


What is a ashx file?

558


Define xmlreader class.

579


Which authentication uses a combination of windows and iis authentication?

593


Where do we store our connection string in asp.net application?

533


Explain asp.net web forms.

568


Explain in what order a destructors is called.

583