Computer Science, asked by snowflake86, 1 year ago

please help me out ​

Attachments:

Answers

Answered by aishwarya2942
1

1. The first element of the array is exactly contained in the memory location that array refers (0 elements away), so it should be denoted as array[0] . Most programming languages have been designed this way, so indexing from 0 is pretty much inherent to the language.

2. Elements of an array are accessed by specifying the index ( offset ) of the desired element within square [ ] brackets after the array name. Array subscripts must be of integer type. ( int, long int, char, etc. ) VERY IMPORTANT: Array indices start at zero in C, and go to one less than the size of the array.

3The main technique used to process arrays is the for loop. A for loop is a way of processing each element of the array in a sequential manner. There are a number of things going on in the above for loop: Before the loop starts, the index idx is being declared and initialized to zero

Similar questions