Language Basics C# Book

We can use default keyword to get the default value for each type.
using System;
class Program
{
static void Main(string[] args)
{
double d = default(double);
string str = default(string);
Console.WriteLine(d);
Console.WriteLine(str);
}
}
The output:
0