Is there any new features added to the chapter of 'array', I read
though this chapter and do not see much new items different from C
language;
Hi
AFAIK, there is no major addition or extension to C array. Of course I
found an item
in TheC++PL special edition by B. Stroustrup:
"Taking a pointer to the element one beyond the end of an array is
guaranteed to work.
This is important for many algorithms".
As you may be know the genric algorithms located in STL works with
standard containers (vector, map, ...)
and built-in arrays. Thease algorithms/containers implemented by a
pair iterators (begin() and end()) and end()
points to one-beyond-the-last element. So for built-in arrays the one-
beyond-the-end-of-array has special
meaning.
The advanced usage of arrays are appeared in standard containers like
vector, list and map, and they are really
major additions to C array.
Regards,
Saeed Amrollahi