What is the use of default keyword?
default keyword is useful for assigning default value to a generic type parameter ( default will give null when type parameter T is a reference type, it gives zero when T is a value type and if it is not a struct. Default gives a struct object if T is a struct and all struct value type members are assigned to zero and all reference type members to null).
default keyword is useful for identifying the default value of primitive types in C# .
First two statements are correct.
First two statements are incorrect.
Back To Top