What is the minimum size (in bytes) of string data type in c#?
Give its compatible data type in .NET Framework.
Answer Posted / dileep
A string type takes 4 bytes (A string is a referenc type)
Bcoz either it references a null value or a non-null value
since it is a reference type which holds the address of a
memory location it occupies the size of an integer (which
is 4 bytes in c#).
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Is std :: string null terminated?
How C# 4.0 supports dynamic programming language?
What do you mean by a windows process in regards to memory allocation?
explain the three services model commonly know as a three-tier application.
what is the purpose of using statement in c#
What is enum in c#?
What is sealed class in c#?
What is the use of getcommandlineargs() method in c#.net?
Explain how to add controls dynamically to the form using c#.net.
What are Uses of CLR
What is static noise?
Can var be null c#?
What's your approach to fetch static data in your windows form application?
Why attributes are used in c#?
Is c# and .net same?