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 |
Why do we need to serialize data?
What is default value of enum c#?
can we access main() using objects?
Can abstract class be sealed?
Give an example to show for hiding base class methods?
what are ways to debug the code step by step except using breakpoints?
What is application object in c#?
What do you mean by synchronous and asynchronous operations?
Is c# an open source?
Trace the O/p for a program on inheritance and Polymorphism. 3 classes A,B,C A with two methods public virtual SomeMethodA public virtual SomemoreMethodA B:A overide SomeMethodA C:B new Method SomeMethodA override SomeMoreMethodA main method { b new instance of B b.SomeMethodA b.SomeMoreMethodA b1 new instance of C b1.SomeMethodA b1.SomeMoreMethodA }
can we drive a class from delegate?
I was trying to use an out int parameter in one of my functions. How should I declare the variable that I am passing to it?
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)