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 static noise?
Is exe is machine dependent?
How do you convert byte array to hexadecimal string, and vice versa?
What is a generic class?
What is IL / CIL / MSIL?
What is 8 bit signed integer?
What is the difference between decimal and integer?
What is hashset c#?
How do I use the 'using' keyword with multiple objects?
Which constructor is called first in c#?
So what makes your code really object-oriented #?
What is the difference between ienumerable and enumerator?
Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?
What is a static property. Give an example?
What is the default value of datetime in c#?