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 difference between application state and caching?
What are custom user controls in asp.net?
How does the browser enable AutoPostBack functionality?
Give an example of cookie abuse.
Given an ASP.NET Web Form called WebFrom1, what class does the WebForm1 class inherit from by default? a) System.Web.Form b) System.Web.GUI.Page c) System.Web.UI.Page d) System.Web.UI.Form
Describe how to implement globalization and localization in the use interface in .net.
How Web Service help? What is the difference between Remoting & Web Servcies?
What is css and what is it used for?
Difference between viewstate, cache, session
What are assemblies and namespaces and explain the difference between them ?
Why is an object pool required?
How do we invoke queries from the application?
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)