Unsafe pointer

  • Thread starter Thread starter Sona
  • Start date Start date
S

Sona

Hi,

please could someone show me how to access a two dimensional array using
unsafe pointers? My C code won't work in C# :-( I used:

arr[2][1] is equivalent to:

*(*(arr+2)+1);

what am I doing wrong?
 

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