How do get the array length?

Oh no, I wouldn't want to steal your thunder.

I didn't say it was impossible (some languages allow it; sadly not C), I merely asked you to post your code.

Off you go.