Interviews3 answers
What is the type of string a value type or a reference type?
3 Answers
string is a reference type. Int is value type. The value will stored as stack memory. String will store the value in Heap.
Sankaranarayanan SivaprathabPosted Jan 20, 2017, 1:49 PM EST
string is a object type
Umesh MauryaPosted Feb 3, 2016, 2:56 AM EST
Refer this link:
http://www.it-notebook.org/uncategorized/article/csharp_data_types.htm
Prakash LakshmananPosted Dec 31, 2014, 12:41 AM EST

