Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NE..

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

What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NE..

Answer / harikrishna

2bytes

Is This Answer Correct ?    7 Yes 1 No

What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NE..

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

What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NE..

Answer / mohan

12 bytes

Is This Answer Correct ?    1 Yes 3 No

What is the minimum size (in bytes) of string data type in c#? Give its compatible data type in .NE..

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

Post New Answer

More C Sharp Interview Questions

What's the difference between System.String and System..StringBuilder in C#?

0 Answers   PUCIT,


Why would you use untrusted verificaion?

1 Answers  


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 }

2 Answers   Proteans,


What is predicate c#?

0 Answers  


What is difference between abstract class and interface in c#?

0 Answers  


What is difference between virtual and override in c#?

0 Answers  


Can class inherit from struct c#?

0 Answers  


What do you mean by sealed classes and static classes?

0 Answers   Accenture,


What is escape sequence in c#?

0 Answers  


Why singleton class is sealed?

0 Answers  


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

0 Answers   HCL,


What is this keyword in C#?

0 Answers  


Categories