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...
 
Back
Top