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 |
What is the file extension of web service?
How many Garbage Collectors are there for one Application or one Page
If Instancing = Single use for ActiveX Exe, how will this be executed if there are 2 consecutive client requests ?
What is difference between asp.net and asp?
I have developed a web application in asp.net 2.0 with Access as back end i am trying to gereate report/export data in excel. After hosting the site i am not getting any error or such exported excel file. but using the source code from my system it works fine. Could any one tell me why it is happening and what is its solution.
What is SilverLight in ASP.NET ?
What is syntax code to send email from an asp.net application?
What is the basic difference between asp and asp.net?
what is webservices. howit is use in our project .
Demonstrate Render and PreRender?
Explain asp.net application life cycle?
Why do I get error message "could not load type" whenever I browse to my asp.net web site?
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)