Why arr, &arr, and arr[0] Aren’t the Same in C++
Introduction
If you’ve worked with arrays and pointers in C++, you might have noticed some confusing behavior. For example, arr == &arr[0] works fine, but int* p = &arr; throws an error. In this post, I’ll explain what’s going on behind the scenes w...
coffee-and-code.hashnode.dev8 min read