#include <stdio.h>
#define N 5
int length(int b[]) {
    return sizeof(b)/sizeof(b[0]);
}
int main(void) {
    int a[N] = {1, 2, 3, 4 , 5};
    printf("%d\n", length(a));
}
I've played around with this a bit and just wondering why it doesn't print the length of the array a. I know other ways to print the length, but I'm just wondering what the specific issue of this block of code is.
 
    