MCQs > IT & Programming > C# > Consider the following code: static void Set(ref object value) { value = 'a string'; } static void Main(string[] args) { object value = 2; Set(ref value); } After the call to 'Set', what will the value in 'value' be?

C# MCQs

Consider the following code: static void Set(ref object value) { value = "a string"; } static void Main(string[] args) { object value = 2; Set(ref value); } After the call to "Set", what will the value in "value" be?

Answer

Correct Answer: "a string"

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

More C# MCQ Questions

search

C# Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it