Question 1 give the CC code that defines an empty 5 element
Question 1. give the C/C++ code that defines an empty 5 element array called dataarray and a pointer called datapointer which is assigned to the first memory address of the data array.
Solution
Answer:
#include <iostream>
using namespace std;
int main()
{
int dataarray[5];
int *datapointer = &dataarray[0];
return 0;
}
