can we pass coditions in swtich case?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / lavanya
Yes, we can pass conditions to switch statement.
| Is This Answer Correct ? | 0 Yes | 0 No |
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
What is the used of "ispostback" property?
What is the main use of Response.Output.Write()?
What is the Intermittent crashing of application in production?
What are the types of assemblies and where can u store them and how ?
What are the differences between Dataset and DataReader?
What is the latest version of asp.net?
Is it possible to use two versions of assembly at the same time?If possible explain with code?
Is it possible to create web application with both webforms and mvc?
what is satellite assembly in .net?
Advantage of Update Panel over Asp.net 2.0 + C#+ Microsoft Ajax 1.0
What is clr? Difference between clr & cts?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)