What will be the output of the following C# code? [code] { delegate string f(string str); class sample { public static string fun(string

Nguyễn Hào

New member
What will be the output of the following C# code?
Code:
{
 delegate string f(string str);
 class sample
 {
     public static string fun(string a)
     {
         return a.Replace('k', 'o');
     }
 }
 class Program
 {
     static void Main(string[] args)
     {
         f str1 = new f(sample.fun);
         string str = str1("Test Ykur C#.NET Skills");
         Console.WriteLine(str);
         Console.ReadLine();
     }
 }
}
A. Test Ykur C#.NET Skills
B. Test Ykour C#.NET Skills
C.
Code:
Test Your C#.NET Skills
D. Test ur C#.NET Skills
 

Tìm kiếm

Back
Top