a function returning reference to 2-D array element replaced by operator[]