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
Is dll a library?
What is the benefit of dependency injection c#?
what are some characteristics of an array?
Why do we need oops in c#?
Which of these string definitions will prevent escaping on backslashes in c#?
Explain the difference between a sub and a function in c#.
Can we override interface methods in c#?
Is c# difficult to learn?
Can a dictionary have the same key?
What is default class in c#?
What is type keyword in c#?
What is unmannaged code and will CLR handle this kind of code or not .
What is void method?
What is expression c#?
What is difference between dictionary and hashtable?