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

Is std :: string null terminated?

920


How C# 4.0 supports dynamic programming language?

1021


What do you mean by a windows process in regards to memory allocation?

963


explain the three services model commonly know as a three-tier application.

991


what is the purpose of using statement in c#

1017


What is enum in c#?

955


What is sealed class in c#?

896


What is the use of getcommandlineargs() method in c#.net?

979


Explain how to add controls dynamically to the form using c#.net.

982


What are Uses of CLR

1033


What is static noise?

914


Can var be null c#?

872


What's your approach to fetch static data in your windows form application?

1004


Why attributes are used in c#?

897


Is c# and .net same?

870