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.

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / radhika

i think we can use arraylist for dynamic size
for example
arraylist al= new arraylist();
al[0]="empname";
al[1]="empname is ............";

Is This Answer Correct ?    3 Yes 1 No

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

Answer / kishore

we can use arraylist for dynamic size

Example:
Arraylist arlst=new Arraylist();
arlstl[0]="empname";
arlstl[1]="xyzz.........";

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Sharp Interview Questions

how to use caching in our program. why we use it give one example in code

1 Answers  


Explain about Threading Types.

0 Answers   DELL,


What does the keyword virtual mean in the method definition?

1 Answers  


What is a clr (common language runtime)?

0 Answers  


What is lazy keyword in c#?

0 Answers  


About multi level and multiple inheritance how to achieve in .net ?

2 Answers   CTS, MMTS,


Why singleton pattern is used in c#?

0 Answers  


What is gridview c#?

0 Answers  


Is datetime nullable c#?

0 Answers  


What is ControlBox Propertie

0 Answers   MCN Solutions,


Why ienumerable is used in c#?

0 Answers  


what are the events in delegate?

2 Answers   Choice Solutions,


Categories