Coding for using Nullable Types in C#?



Coding for using Nullable Types in C#?..

Answer / sabina

int? ii = null;
Console.Write(ii.HasValue);

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Sharp Code Interview Questions

Code for Reading and writing from a file?

0 Answers   IBM, Xoriant,


Code for Reading and writing from a file in c#?

1 Answers  


How to use ASP.NET 2.0's TreeView to Display Hierarchical Data?

1 Answers  


c# code to Count number of 1's in a given range of integer (0 to n)

0 Answers  


Write a program to convert postfix expression to infix expression.

0 Answers   Mind Tree,






write a Program to copy the string using switch case.

0 Answers   Mind Tree, Wipro,


program to reverse the order of words in a string.

2 Answers   Mind Tree,


Write a program to input an integer and - display the reverse - display the sum of each digit - should include logic that considers the input number as any number of digits long

2 Answers   Mind Tree,


Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik

1 Answers   Mind Tree,


I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?

0 Answers  


Automatically Hyperlink URLs and E-Mail Addresses in ASP.NET Pages with C#

1 Answers  


c# coding for a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors not using the Big-integer and Exponential Function's.

1 Answers   TCS,


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)