Buy Questpond's video subscriptions on
huge discount
.
Online: 11460
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 is the use of ?? operator in C#?
Posted by
Abhisek
on 1/21/2010 | Category:
C# Interview questions
| Views: 6280
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
This operator allows you to assign a value to a nullable type if the retrieved value is in fact null.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What are the different Iteration Constructs in C#?
Next > :
What is the name of C# command line compiler?
Comments or Responses
Posted by:
Nandakumarpb
on: 8/20/2010 |
Points: 10
Double question mark(??) is not for the nullable type. See MSDN
The ?? operator returns the left-hand operand if it is not null, or else it returns the right operand.
And This is a kind of Immediate if statement in VB6(?) IIF.
nullable type is declaration using single question mark(?).
I hope I am correct .
Login to post response
More Interview Questions by Abhisek
What is the name of C# command line compiler?
Which namespace in .NET is used in networking programming?
How ASP .NET different from ASP?
How to manage pagination in a page?
What do you mean by ActiveX components?
How to create Key Pair?
What is GAC?
How to install a strong named assembly to GAC at command prompt?
Latest Interview Questions
Can you compare two SQL fields with datatype "text" by using ...
what is web part?and type
what is MOSS ?
What are ways to create input forms for workflow ?
What are the types of input forms that can be created for a workflow ?
What is Authentication and Authorization.
what is Ajax?
what is PrePageExecute() event
More ...