What is the minimum size (in bytes) of string data type in c#?
Give its compatible data type in .NET Framework.
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / paresh nawale
dileep is right.
as string is refrence type it need 4 bytes to hold memeory
address.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / ganesh
sorry harikrishna. ur answer is wrong.
by default the size of a string is 0 bytes.we can have a
null string in c#.
Is This Answer Correct ? | 2 Yes | 5 No |
What is a class c#?
What is msil in c#?
What is regex replace in c#?
Will finally block get executed if the exception had not occurred?
What does exclamation mark mean in access query?
How encapsulation and abstraction defined/used in C#.NET.
Why are strings immutable in c#?
what are the contents of an assembly ?
how to access the virtual method without creating the objet for the virtual method?
Which is better javascript or c#?
How do I start a program in c#?
what are the events in delegate?