答案 0 :(得分:0)
您违反了API
p1
例如,您可以尝试以下方法:
#define DebugPointer(p) \
{ \
printf("%8s %20s: %p\n", #p, "address", (void*)&(p)); \
printf("%8s %20s: %p\n", #p, "points to", (void*)(p)); \
}