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.

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


Please Help Members By Posting Answers For Below Questions

What is static noise?

951


Is exe is machine dependent?

968


How do you convert byte array to hexadecimal string, and vice versa?

1161


What is a generic class?

1016


What is IL / CIL / MSIL?

1166


What is 8 bit signed integer?

966


What is the difference between decimal and integer?

1197


What is hashset c#?

1047


How do I use the 'using' keyword with multiple objects?

998


Which constructor is called first in c#?

999


So what makes your code really object-oriented #?

1013


What is the difference between ienumerable and enumerator?

961


Why do you call it a process? What’s different between process and application in .net, not common computer usage, terminology?

1040


What is a static property. Give an example?

994


What is the default value of datetime in c#?

1025