pointers

  • Thread starter Thread starter J. Marcelo Barbieri
  • Start date Start date
yes, but you must keep in mind that you need to mark you code as unsafe. To
do so...

right click your project, properties, configuration properties and set to
true the line "Allow unsafe code blocks".

Then, in your function, declare (example):

private unsafe void soma(int a, int b, int* c)
{
*c = a+b;
}

As far as I can remember, this is how it's done. I have no code of pointers
here... Be sure to check the restrictions that may apply to using
pointers...

I thought that BF used to teach this kind of stuff...
 

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

Similar Threads


Back
Top