In Java one can use foo.size or foo.size() if an ArrayList to determine the size of an array. Quite handy for keeping "ArrayIndexOutOfBound" exceptions from being thrown but in C is there anything even remotely close to this?
I would rather there be than to continuously write a function to determine the size of an array.