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