1.

What are strings in C#?(a) a sequence of characters(b) array of characters(c) objects of built-in data type(d) a reference typeI got this question in an international level competition.I'm obligated to ask this question of Introduction of String Formatting in portion Miscellaneous topics of C#

Answer»

Correct choice is (c) objects of built-in DATA type

To explain: GENERALLY, a string is defined as a sequence of characters but it is different in C#. In c++, the string is an array of characters. In case of C#, STRINGS are objects of the built-in string data type. Thus, a string is a REFERENCE type.



Discussion

No Comment Found

Related InterviewSolutions