Computer Science, asked by Akshikiski1726, 9 months ago

When we write num[100]=99 how many elements can be stored inside the variable num?

Answers

Answered by utkarshmishra9819
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 SushmitaAhluwalia
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