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 is multicast delegate explain with example?
Write a sample code to write the contents to text file in c#?
What are data types examples?
What is the difference between readkey and readline in c#?
What is the use of generics in c#?
Can I use exceptions in c#?
What is the purpose of abstract class in c#?
What are the two uses of a ‘using’ statement in c#?
What is array and its types in c#?
What is console used for?
Why would you use a class property in c#?
What does exclamation mark mean in access query?
What is singleordefault c#?
What is managed or unmanaged code?
What are extensions in c#?