how to do memory allocation in C# need help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Sir ,

I am new to c#, I am unable to allocate memory to this structure. can anyone
please tellme how can we allocate memory to this strucutre.

struct matrix
{
public int row_dim;
public int col_dim;
unsafe public double **data;
} ;
 
I am new to c#, I am unable to allocate memory to this structure. can anyone
please tellme how can we allocate memory to this strucutre.

Why do you use pointers and unsafe code rather than a regular managed
array?



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top