How to find the size of an array in C without sizeof (aka The difference between arr and &arr) Hey folks, Long time no C. Generally in C, this is how we find the length of an array arr : n = sizeof(arr) / sizeof(arr[0]); Here we take the size of the array in bytes; then divide it by the size of an individual array element. What if I tell you that we can get rid of sizeof and have a cooler way to c
![How to find the size of an array in C without sizeof (aka The difference between arr and &arr)](https://cdn-ak-scissors.b.st-hatena.com/image/square/be35c7f77385dbcd613cd2963bfc794e83a1b0ca/height=288;version=1;width=512/https%3A%2F%2F64.media.tumblr.com%2F2e41817efbb092e06699cbd5a71f1cdc%2F9c044d45c66fc895-47%2Fs500x750%2F0c2193aedc0c506e3398d6f68d6e0d9967dacca0.png)