MCQs > IT & Programming > C# > What is the main difference between these two declarations? var text1 = 'hello'; dynamic text2 = 'hello';

C# MCQs

What is the main difference between these two declarations? var text1 = "hello"; dynamic text2 = "hello";

Answer

Correct Answer: The compiler will determine that text1 is a string, but will make no assumptions about the type of text2 or what members it might contain.

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