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...

What is the output of the following code given the function definition that follows:

cout << myFunction (7, 5, 2); // code in main int myFunction (int a, int b, int c) // function definition { int p = a + 2 * b + c; return p + 3; }

Computer Science & Information Technology

You can display ____________________ to reveal hidden symbols that indicate paragraph breaks, spaces, and tab stops.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Never accept attachments that are not expected.?

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A method that is associated with an individual object is called __________.

a. a static method b. a class method c. an instance method d. an object method

Computer Science & Information Technology