Your program creates a dynamically allocated array as follows:

```
int *entry;
entry = new int[10];
```
so that the pointer variable entry is pointing to the dynamically allocated array.
Write code to fill this array with 10 numbers typed in at the keyboard.

```
#include using namespace std;int main(){ int
*entry; entry = new int[10];
cout << "Enter 10 integers:\n"; for(int i = 0; i < 10;
i++) cin >> entry[i]; for(int i = 0; i < 10; i++)
cout << entry[i] << " ";
cout << endl;
return 0;
```

Computer Science & Information Technology

You might also like to view...

Use the ________ key to more easily define a selection that may be difficult to select by dragging the mouse or touchpad

A) F1 B) Shift C) Alt D) Ctrl

Computer Science & Information Technology

Match the following criminal law characteristics to their civil law counterparts

I. Protects society's interests A. Deters injuries and compensates the injured II. Violates a statute B. Preponderance of the evidence III. Criminal violations C. Causes harm to an individual, group, or legal entity IV. Beyond a reasonable doubt D. Noncriminal injuries V. Deters crime and punishes criminals E. Provides an injured private party the opportunity to bring a lawsuit for the injury

Computer Science & Information Technology