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
List down the different ide’s provided by microsoft for c# development.
Can I use ReaderWriterLock instead of Monitor.Enter/Exit for Threading?
List down the commonly used types of exceptions in .net
What is parsing?
Can int be null in c#?
Why should I use interface in c#?
Explain the clr triggers?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
What is the difference between Object and class adapters?
Can we inherit private class in c#?
What is arraylist?
What does the parsefloat function do?
What Is A Satellite Assembly?
What is the difference between ienumerable and iqueryable?
What is ispostback c#?