how to know the number of element in array?
thx!!
This is a discussion on a simple question within the C++ Programming forums, part of the General Programming Boards category; how to know the number of element in array? thx!!...
how to know the number of element in array?
thx!!
int array[something];
int noOfElements;
noOfElements = sizeof(array) / sizeof(array[0]);