Write a program that has an double array intArray[] that has N elements and is initialized with values start from 0 and incremented by 1 and then multiplied by 2. Your task is to print the address of the odd index and its value. [Note: you can define the value of N at least 10 or more] PLEASE DO NOT USE ANY INDEX TO ACCESS ELEMENTS OF THE ARRAY.
Write a
Sample Output:
Elements of intArray:
0 24 6 8 10 12 14 16 18
The address of index 1 is: Ox7ffebe1108c4 and the vlaue holds is 2
The address of index 3 is: 0x7ffebe1108cc and the vlaue holds is
The address of index 5 is: 0x7ffebe1108d4 and the vlaue holds is 10
The address of index 7 is: 0x7ffebe1108dc and the vlaue holds is 14
The address of index 9 is: 0x7ffebe1108e4 and the vlaue holds is 18
![Sample Output:
Elements of intArray:
The address of index 1 is: 0x7ffebe1108c4 and the vlaue holds is 2
0 2 4 6 8 10 12 14 16 18
The address of index 3 is: 0x7ffebe1108cc and the vlaue holds is 6
The address of index 5 is: 0x7ffebe1108d4 and the vlaue holds is 10
The address of index 7 is: 0x7ffebe1108dc and the vlaue holds is 14
The address of index 9 is: Ox7ffebe1108e4 and the vlaue holds is 18](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbf89c7d9-8a8f-479f-ab3b-5b96d83f1bc2%2Fa9335bed-0199-4c1e-a4e6-48c570d249e9%2Fipefpj_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)