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 |
Is string nullable c#?
Why we use delegates in c#?
How do you pronounce c#?
What is the use of 'using' statement in c#?
What is dbml file in c#?
can we throw execption from catchblock
how to communicate inventory system and account system?
What is tpl in c#?
How can you overload a method?
Explain the difference between user control and custom control. Also, explain their use.
If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?
List down the commonly used types of exceptions in .net
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)