What will be the output of the following C# code snippet? [code] class Program { static void Main(string[] args) { String

Đức Lưu

New member
What will be the output of the following C# code snippet?
Code:
class Program
{
    static void Main(string[] args)
    { 
        String c = "i love Csharp";
        bool a;
        a = c.StartsWith("I");
        Console.WriteLine(a);
        Console.ReadLine();
    }
}
A. true
B. false
C. 0
D. 1
 

Tìm kiếm

Back
Top