blah blah blah is here! blah blah » Close

up0down
link

Hello

So i need to declare an array of pointers, like in C++ i would use

double* voltagePointerArray[64];

I need to do the same for C#, but i am not sure of the syntax or for that matter even if i can actually do it.

Help will be highly appreciated.

Thanks
Muhu

last answered 2 years ago

1 answers

up0down
link

In unsafe code, you can declare an array of pointers in C# like this:

double*[] voltagePointerArray = new double*[64];

Until you assign them pointer values, all the elements of the array will have values of null which is equivalent to (double*)0.

Feedback