Struct pointers in C#
Forums:
struct Point {
public int x, y;
};
Point *p = stackalloc Point[1];
//p->x and p->y is 0
p->x = 5;
(*p).y = 7;
- Log in to post comments
struct Point {
public int x, y;
};
Point *p = stackalloc Point[1];
//p->x and p->y is 0
p->x = 5;
(*p).y = 7;