- Given The Following Program With Errors Rewrite The Program To Store The Power Of The Array S Index And Print The Value 1 (73.95 KiB) Viewed 37 times
Given the following program with errors. Rewrite the program to store the power of the array's index and print the value
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Given the following program with errors. Rewrite the program to store the power of the array's index and print the value
Given the following program with errors. Rewrite the program to store the power of the array's index and print the value. int main() { const int SIZE = 25; int *arrayptr; arrayptr = new double[SIZE]; for (int i = 0; i < SIZE; i++) *arrayptr = i* i; for (int i = 0; i < SIZE; i++) cout <<*arrayptr + i<<endl; return 0; } value