Interviews3 answers
How to declare an integer variable which can except null? a) int? x b) <nullable>int x c) int x IS NULL d) int ISNULL(X)
3 Answers
int? x;
kajal ranePosted Apr 9, 2019, 8:03 PM EDT
Hi you can declare like that, this is call nullable type of variable
int? i = 50;
double? d1 =4.4;
bool? flag = null;
char? letter = 'h';
int?[] arr = new int?[20];
string is not a nullable type
Hamid KhanPosted Jan 7, 2015, 1:19 AM EST
a,b
Surajit ChakrabortyPosted May 27, 2013, 1:54 AM EDT
