Built-In Array Limitations

Built-in arrays have several limitations:

• They cannot be compared using the relational and equality operators—you must use a loop to compare two built-in arrays element by element.

• They cannot be assigned to one another.

• They don’t know their own size—a function that processes a built-in array typically receives both the built-in array’s name and its size as arguments.

• They don’t provide automatic bounds checking—you must ensure that array-access expressions use subscripts that are within the built-in array’s bounds.

Objects of class templates array and vector are safer, more robust and provide more capabilities than built-in arrays.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.104.177