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

What will be the output of the following C# code?
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.
Code:
false
C. 0
D. 1
 

Tìm kiếm

Back
Top