C++ code:
person* NewPerson(void) { person p; /* ... */ return &p; //return pointer to person. }
C# code:
person
Did i get this right?
Yes.
BTW: in C++ person p(); declares a function and will not call the default ctor of person. Just write person p;