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 there an equivalent to the instanceof operator in visual j++?
What happens if you add duplicate elements to a set?
Wcf and what is difference between wcf and web services?
How we can create an array with non-default values?
What does int32 mean in c#?
Define sealed classes in c#?
Is array a list?
When should I throw an exception?
What is an inheritance ?Give an example in which inheritance is used?
What do u mean by thread safe?
What is data hiding in c#?
How many bytes is a long c#?
how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.
What does void mean unity?
Explain the difference between user control and custom control. Also, explain their use.