Question: Class being used would be great but unnecessary I. Write a C++ program to do the following: a. Declare an std:array and name it arrl

Class being used would be great but unnecessary
I. Write a C++ program to do the following: a. Declare an std:array and name it arrl and initialize it with 10 integer values b. Declare an std:array and name it arr2 and populate it with the value 5 for all 10 elements. c. Print arrl and arr2 using get). d. Swap the values of arr l and arr2 e. Print the size of the arrays. f. Print both the arrays using at). g. Print the first and last elements of both the arrays. Bonus: 5 pts if you use class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
