Computer Science, asked by rewaasrour2000, 4 months ago

1)how do you read an array?
2)how do you create an array?
3)what is the types of array in c?

Answers

Answered by Anonymous
2

Answer:

  1. First the discover: when the code says “array[i]” it is referring to the for loop var “i”. So then the for loop is checking to see if the value of “i” is greater than the value of the var called “largest”. As soon as “i” is greater than largest, the value of largest gets set to that number.
  2. Obtaining an array is a two-step process. First, you must declare a variable of the desired array type. Second, you must allocate the memory that will hold the array, using new, and assign it to the array variable. Thus, in Java all arrays are dynamically allocated.
  3. In c programming language, single dimensional arrays are used to store list of values of same datatype. In other words, single dimensional arrays are used to store a row of values. In single dimensional array, data is stored in linear form.
Similar questions