I know one method of finding the size of an array is:
[CODE=c]int x[5] = {0};
(sizeof (x) / sizeof *(x) )[/CODE]
But is there better looking way? For example, java can use array.length() or array.length. Is there anything like that in C?
[CODE=c]int x[5] = {0};
(sizeof (x) / sizeof *(x) )[/CODE]
But is there better looking way? For example, java can use array.length() or array.length. Is there anything like that in C?
Comment