int A[11]; how many elements can be stored in it

+12 votes
asked Jan 10, 2018 by Tanveer Hussain

28 Answers

0 votes
answered Jul 27, 2019 by anonymous
To answer the question, 11 integer elements can be stored in A[11]. However, the indexes, used to access the elements in the array, are in the range 0 to n-1 where n is the size of the array (11 in this case). So, the first element could be accessed by A[0] and the last element in the array could be accessed by A[10].
0 votes
answered Dec 22, 2019 by kothakushal (560 points)
11 can be stored because it is integer data type
0 votes
answered Dec 22, 2019 by MOHANAPRIYA S (150 points)
11 elements can be stored in it
0 votes
answered Dec 23, 2019 by anonymous
11 elements but to access them, element 1 would be index 0 and element 11 would be index 10 since arrays start at 0
0 votes
answered Dec 23, 2019 by Harshith2904 (140 points)
10 elements can be stored in it. The 11th element is '\0' which is the terminator element.
0 votes
answered Dec 23, 2019 by Suhit Gupta (180 points)
in this array variables maximum of 11 integer type values can be stored
0 votes
answered Dec 24, 2019 by RAGE MONSTER rocks (570 points)
11 elements can be stored
Whose index no. Starts from 0 to 10.
0 votes
answered Dec 24, 2019 by Subham
11 elements can be stored but indexing will be from a[0] to a[10].
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...