I always thought that I knew what an array element was, but now I’m not sure. As we know, a classic fixed-size array consists of a set of cells. For example:
int a[10] - массив из 10 ячеек типа int (каждая по sizeof(int) байт)
An array cell is a memory area that we can access by index. Its position in the array can not be changed. Each cell stores the value (in our example, a scalar).
Question: is an array element a synonym for a cell (memory area) or a synonym for a cell value? For example, is the statement true: "elements of an array can be swapped"?
Interested in the answer in general and the answer for C ++ in particular.