simple array question from a c beginner.
basically i have an integer array as an argument to a function. my problem is getting its length. sample code of what i have so far is:
int arrLen (int a[]) {
return (sizeof a / sizeof a[0]);
}
but this returns 1, which i'm guess is 4 bytes divided by 4 bytes. any ideas?
any help would be appreciated!