Answer (Choose 1 answer)
delegate void D1(string s);
class Program
{
static void Print(string s) {
Console.Write(s);}
static void Show(string s)
{ Console.WriteLine(s);
}
static void Main(string[] args)
{
D1 d = new D1(Print);
d("C#");
d = new D1(Show);
d(".NET");
}
}
The output will be:
A. C#.NET
B. NETC#
C. C#
D. NET
Exit 12