+ 1

How to declare dynamic array?

I was wondering and searching all over the place how one can declare array dynamically on runtime in C# like C++. In C++ one can do that using pointers how can we implement that in C#

23rd Feb 2017, 3:53 PM
Saransh Pagey
Saransh Pagey - avatar
2 Respuestas
+ 4
In C# you'll want to use lists: Eg. List<int> list=new List<int>();
23rd Feb 2017, 11:33 PM
Boris Sundic
Boris Sundic - avatar
0
thank-you
24th Feb 2017, 3:56 AM
Saransh Pagey
Saransh Pagey - avatar