MCQs > IT & Programming > C# > 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(); }

C# MCQs

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(); }

Answer

Correct Answer: b) 8

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it