Write a C++ code fragment that is assumed to be embedded in an otherwise complete and correct program. You are to assume the user has been prompted (so you don’t have to) for (exactly) 20 values of type int to be read from the keyboard, You are to use this input to fill an array. Do not write a full program, just the code fragment to do this. Do give declarations of the array and any variables you use.
What will be an ideal response?
```
int i, a[20];
for(i=0; I <20; I++)
cin >> a[i];
```
Computer Science & Information Technology
You might also like to view...
Excel maintains a record of tracked changes in the ________
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
Utility functions:
a. Are private member functions that support operations of the class’s other member functions. b. Are part of a class’s interface. c. Are intended to be used by clients of a class. d. Are a type of constructor.
Computer Science & Information Technology