When we write num[100]=99 how many elements can be stored inside the variable num?
Answers
Answered by
26
Answer:
in this case 101 variables can stored in the variable num.Since arrays start from index 0.And the given expression is just assigning a value to the 101st place and 100 imdex number place.
Answered by
36
The number of elements that can be stored in the array are 100.
- An array is a collection of elements stored in contiguous memory locations.
- In the given example,
num[100] = 99
- Here, we have an array with name 'num' whose size is 100 and the 100th element is 99.
- All arrays start with base index '0'.
Similar questions
Geography,
6 months ago
Social Sciences,
6 months ago
Economy,
1 year ago
Chemistry,
1 year ago
Science,
1 year ago