Computer Science, asked by sarannpl2001, 10 months ago

4 Consider the statement
int val[2][4] = { 1, 2, 3, 4, 5, 6, 7, 8)
4 will be the value of​

Answers

Answered by udaycool183
1

Answer:

ans is val(0)(3)

Explanation:

beacause in int val(2)(4) the value of 2 is row and 4 is coumn

Answered by tripathiakshita48
0

Answer:

4 will be in the place of [0][3]

Explanation:

An array is a group of identically data-typed elements kept in consecutive memory regions.

As a result, it is simpler to determine each element's position by simply adding an offset to a base value, or the address in memory where the array's first element is stored (generally denoted by the name of the array). Index 0 serves as the basis value, and the offset is the difference between the two indices.

For ease of understanding, imagine an array as a flight of stairs with a value (let's say, one of your friends) placed on each level. Any of your pals can be located here by merely knowing how many steps they have left to go.

"Location of next index" should be noted.

See more:

https://brainly.in/question/38786566

#SPJ5

Similar questions