In java is it possible and if not how to calculate in c?
if it's really array (not a pointer), you can do sizeof(arr)/sizeof(*arr)
sizeof(arr)/sizeof(*arr)
548k questions
547k answers
4 comments
86.3k users