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;
}

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 ad

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site