Write code to fill this array with 10 numbers typed in at the keyboard.

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.


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

Which of the following is NOT a step in a serviceable backup plan?

A. Make a system recovery drive. B. Make monthly backups. C. Activate autosave. D. Make copies of important files.

Computer Science & Information Technology

Autonomy is defined as ________

A) working without continual direction and control B) repressing inappropriate behavior C) feeling confident and excited about learning new skills D) working for something larger

Computer Science & Information Technology

You cannot install Windows on a Mac

Indicate whether the statement is true or false

Computer Science & Information Technology

Cardinality describes the number of possible occurrences in one table that are associated with a single occurrence in a related table.

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

Computer Science & Information Technology