Question: 1 . int main ( ) { 2 . int tests [ 1 0 ] ; 3 . int test; 4 . int num _

1. int main(){
2. int tests[10];
3. int test;
4. int num_elems;
5. cout << "How many numbers?: ";
6. cin >> num_elems;
7. for (int i =0; i < num_elems; i++){
8. cout << "Please type a number: ";
9. cin >> test;
10 tests[i]= test;
11.}
12. return 0;
13.}
List and describe all potential secure coding problems from the sample code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!