Question:What will be the output of the following Main program in a C# console application (Assume required namespaces are included)?
static void Main(string[] args)
{
    string Invalid = "$am$it$";
    string sResult = Invalid.Trim(new char[]{'$'});
    Console.WriteLine(sResult);
    Console.ReadLine();
}
 

A amit 

B am@am$ 

C $am$it$ 

D am$it 

+ Answer
+ Report
Total Preview: 865

Copyright © 2024. Powered by Intellect Software Ltd