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 |
If a method's return type is void, can you use a return keyword in the method?
Explain the difference between and xml documentation tag?
State two different types of access modifiers.
Why do we need constructor in c#?
What is console read in c#?
What are the valid parameter types we can pass in an Indexer ?
What is the difference between String s(Small s) and String S(Capital S)?
What is wrong with the sample program below?
What is dataadapter c#?
What is default value of decimal c#?
What is difference between method overriding and method overloading?
What is ildasm and obfuscator in net?