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
What's difference between constants and static readonly?
What is querystring in c#?
How does split work in c#?
What does the parsefloat function do?
Can you prevent a class from being instantiated?
What is the difference between CreateObject() and GetObject()?
code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.
What are the differences between events and delegates in c#?
How many kinds of elements an array can have?
Why c# is called type safe language?
Name the connections does microsoft sql server support?
What are different types of Delegates in C#?
What is the use of dll file in c#?
What is strongly typed view?
What is a float?