static void Main(string[] args) { string s1 = "Delhi"; string s2; s2 = s1.Insert (6, "Jaipur"); Console.WriteLine(s2); } a) DelhJaipuri b) Delhi Jaipur c) Delhi d) DelhiJaipur
Home/What will be the output of the following C# code?/Page 15
Gkbix Latest Questions
static void Main(string[] args) { { var dayCode = "MTWFS"; var daysArray = new List<string>(); ...
static void Main(string[] args) { char c = 'g'; string s = c.ToString(); string s1 = "I am a human being" + c; ...
public static void Main(string[] args) { double ZERO = 0; Console.WriteLine("RESULT OF DIVISION BY ZERO IS :{0}", (0 / ZERO)); Console.ReadLine(); } a) 1
static void Main(string[] args) { int x = 1; float y = 2. 4f; short z = 1; Console. WriteLine((float) x + y * z ...
static void Main(string[] args) { float a = 10.553f; long b = 12L; int c; c = Convert.ToInt32(a + b); Console.WriteLine(c); } a) ...