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
Why do we use delegates?
Explain About web methods and its various attributes
what is the difference between the debug class and trace class?
Why do we use dictionary in c#?
Is clr a compiler?
what are nullable types in c#
Define c# i/o classes?
How many keyword present in C# language ?
For methods inside the interface why can’t you specify the accessibility modifier?
What is the use of readkey in c#?
Explain publishers and subscribers in events.
What is the difference between field and property in c#?
How do I move from one form to another in c#?
Describe how a .net application is compiled and executed
What is difference between dictionary and list in c#?