int arr[10];
void* p1 = arr;
void* p2 = arr + 10;
size_t sz = p2 - p1;
The same code, on the C++ side, it doesn't compile. But on the C side, it compiles. And the result sz is 40.
I know why it doesn't compile on C++ side, because void does't have size so it can't do subtraction. But what's for the C side?
I guess C treat void* as int*, right?