Nullable Types In C# | #shorts | #shortsvideo



Nullable Types In C# | #shorts | #shortsvideo
Follow on Instagram 🚀🌍💥
@coding_ground0
https://www.instagram.com/coding_ground0/
@programming_skills_
https://www.instagram.com/programming_skills_

// c# types are divided into 2 categories
// ValueType: int, float, enums, structs etc
// Ref types: interface, class…etc.
//ValueType are non nullable by default
// To make them nullable we use nullable
// type i.e ?
int x ;
int? y = null;
// using null coalesce operator ??
x = y ?? 0;
Console.WriteLine(x);

// To check the null value
// we use null coalesce operator ??

#programming #computerscience #code #viral #shortsvideo #html5 #dotnet #dotnetcore #javascript #coding #softwaredeveloper#codingisfun #codingfun #learnprogramming #csharp