+ 2

What do you mean by arr[50]

24th Jan 2017, 5:29 AM
Abhishek
Abhishek - avatar
3 Answers
+ 4
Depends where you use it: int arr[50]; /* creates an array with 50 elements */ -or- arr[50] = 10; /* access the 51st element in arr (first element would be arr[0]) */
24th Jan 2017, 6:04 AM
Robobrine
Robobrine - avatar
+ 4
arr[50] means the 51st element in a list that has elements above 50
24th Jan 2017, 6:36 AM
Aphro10
Aphro10 - avatar
+ 3
The 51st element of the array "arr".
24th Jan 2017, 5:46 AM
Álvaro