Using (Microsoft Visual Studio C++ 6.0) software, follow the sample output to write and run a program that uses two functions called createand print. The function createwill ask the user to enter the size n of an array a andits items to create it. Whereas the function print will print the created array a.
The prototypes of the functions are:
voidcreate(int*&a, int&n);
void print(int *a, int n);
Sample Output (1):
Enter the size of the array: 4
Enter 4items in the array, one per line:
44
77
22
88
The created array is:
44 77 22 88
Sample Output (2):
Enter the size of the array: 2
Enter 2 items in the array, one per line:
3
9
The created array is:
3 9