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's difference between constants and static readonly?

1088


What is querystring in c#?

865


How does split work in c#?

840


What does the parsefloat function do?

868


Can you prevent a class from being instantiated?

955


What is the difference between CreateObject() and GetObject()?

1023


code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

2115


What are the differences between events and delegates in c#?

907


How many kinds of elements an array can have?

869


Why c# is called type safe language?

785


Name the connections does microsoft sql server support?

871


What are different types of Delegates in C#?

962


What is the use of dll file in c#?

834


What is strongly typed view?

832


What is a float?

853