1.

What is output for the following set of Code? static void Main(string[] args) { String obj = "hello"; String obj1 = "world"; String obj2 = obj; string s = obj+" "+obj1; Console.WriteLine(s.IndexOf('r')); Console.ReadLine(); }

A. 7
B. 8
C. 9
D. 10
Answer» C. 9


Discussion

No Comment Found