Buy Questpond's video subscriptions on
huge discount
.
Online: 1042
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
C#
>
Loading ...
What will happen if you declare a variable named "checked" with any data type?
Posted by
Virendradugar
on 12/15/2009 | Category:
C# Interview questions
| Views: 5772
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
Compiler will throw an error as checked is a keyword in C# So It cannot be used as variable name. Checked keyword is used to check the overflow arithmetic checking.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What can you do to make class available for inheri ...
Next > :
What are anonymous methods?
Comments or Responses
Posted by:
Caveatashish
on: 12/16/2009
A small reminder here, the same will work fine in vb.net but not in C#.
here is the sample code run fine in vb.net but not in c#
Dim checked As Integer
checked = 10
MsgBox(checked)
Login to post response
More Interview Questions by Virendradugar
What is obsolete method?
Can you have different access modifiers on the get/set methods of a pr ...
JQuery is replacement of Java Script?
Name some of the methods of JQuery used to provide effects?
What are features of JQuery or what can be done using JQuery?
What is JQuery UI?
Using which property you can check on the server whether validators co ...
In which table, SQL SERVER stores the user name and password used for ...
Latest Interview Questions
What are anonymous methods?
Restrictions of yield in try-catch.
With yield break statement, control gets …
What first action compiler will take on detection of iterator ?
Elements of jagged array are of…
How can we make file hidden ?
The capacity of the stringbuilder get increased,…
Clustered Index vs NonClustered Index.
More ...