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
What is the task perform by clr?
What are the differences between system.string and system.text.stringbuilder classes?
What will be the output of the following code?
Can a static class contain non static members?
What is mean by c#?
How to get the sum of last 3 items in a list using lambda expressions?
How will you allow a class to be inherited, but prevent the method from being over-ridden?
What happens when thread sleep () method is called?
Does c# support const methods, properties, or events?
What is the default value of guid in c#?
How do you prevent a class from being inherited?
Can a class have multiple constructors c#?
What is ildasm and obfuscator in net?
What is the difference between Static, Const and read only?
What are native functions?