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...

which datatype i have to use we i need dynamic size.for eg.
empname .in first row it have only five chars.but next row it
have 100 chars.

Answer Posted / mahesh kotekar

When there is a requirement of storing different length of
characters in an array . We can use jagged arrays.
int[][] jagged = new int[3][];
jagged[0] = new int { 1,2,3 };
jagged[1] = new int { 1, 2, 3, 4, 5 };
jagged[3] = new int { 1, 2, 3, 4, 5, 6, 7, 8,9};

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language do desktop applications use?

915


What are the different types of classes in c#?

917


What is an escape sequence in c#?

936


Distinguish between a class and struct?

891


What is the correct way of declaring an xml namespace?

797


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

908


User's session is explicitly killed by which method ?

910


if a method is marked as protected internal who can access it?

1004


Explain the process of abstraction with an example?

901


What is ado net in c#?

858


Why attributes are used in c#?

849


Explain how do I convert a string to an int in c#?

935


Can u list some style properties of List Box?

882


Is c# substring zero based?

932


Can we set image Source dynamically using C# in WPF application?

1025