标签: c pointers heap-memory
struct Node { int data; struct Node* npx; }; struct Node* XOR (struct Node *a, struct Node *b) { return (struct Node*) (a ^ b); }
在上述XOR函数中,“ a”和“ b”是指针,这意味着“ a”和“ b”应按字面值给出地址。