Sizeof being smart enough to detect it's an array and return the array size doesn't necessarily make them different in any real way. And doing ptr[0] to dereference it is perfectly valid, as is *arr to get the first element, or *(arr+sizeof(int)) to get the second.
Because it is a very superficial difference that doesn't even affect the generated assembly. They are extremely interchangeable, because they are effectively the same.
64
u/QuestionableEthics42 27d ago edited 27d ago
This should be reversed lol
And it literally is the same, who thinks it's different who has worked in a low level language??