Is it possible to check if two pointers points to the same object?

前端 未结 0 1953
再見小時候
再見小時候 2021-01-20 14:33

Let\'s consider this code:

char arr[10];
char *ptr1 = &arr[0];
char *ptr2 = &arr[5];

Clearly, these two pointers points to the same o

相关标签:
回答
  • 消灭零回复
提交回复
热议问题