What is the difference between an array's side delarator and a subscript?

1 answer

Answer

1293083

2026-08-19 08:15

+ Follow

An array's side delimiter refers to the characters that enclose the array, such as brackets ([]) or parentheses (()). In contrast, a subscript is an index used to access a specific element within the array, typically represented by an integer placed inside the side delimiters. For example, in the array arr[3], the brackets are the side delimiters, while the 3 is the subscript that accesses the fourth element of the array (assuming zero-based indexing).

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.