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
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 |
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 |
Is c# a backend language?
What to implement on my class Finalize or IDisposable
What is iqueryable and ienumerable in c#?
What is a struct in C#?
Which is faster list or dictionary in c#?
what is the diference between casting and converting?
What is the role of the datareader class in ado.net connections?
Is c# and c sharp same?
what is difference between is and as operators in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is sqladapter c#?
Explain About sn.exe
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)