Each of the following definitions and program segments has errors.
Locate the error(s) and state whether it is a compiler error or runtime error.
(1) int *ip, x;
*ip = &x;
(2) int *ip;
int arr[100]={0};
for (int i=0; i<100; i++)
ip[i]=arr[i];
(3) int arr1[100], arr2[100];
for (int i=0; i<100; i++)
cin >> arr1[i];
arr2=arr1;
(4) int numbers[] = {1, 2, 3, 4, 5, 6};
cout << "The third element in the array numbers is: ";
cout << *numbers + 3 << endl;
(5) int values[20];
int *iptr;
iptr=values;
iptr *=2;
(6) const int arr[] = {20, 40, 60};
int *ip;
ip = arr;
(7) int *numbers[SIZE];
for (int i=0; i <= SIZE-1; i++)
numbers[i]=i;
(what if I would replace this with: numbers[i]=&i; )
=================================================================
Given the following variables, determine the output to all of the following statements.
int arr[6]={0, 88, 77, 66, 55};
int i=3;
int *ip = arr+1;
A) cout << arr[i];
B) cout << *(arr+i)
C) cout << *arr;
D) cout << arr[*arr];
E) cout << arr[*arr+2];
F) cout << *ip;
G) cout << ip[1];
H) cout << ip[i];