Q.1.
What is the use of swap() function in array class?
Q.2.
What is the syntax of swap()?
Q.3.
What is the use of empty() function in array classes?
Q.4.
What is the use of fill() function in array class?
Q.5.
What will be the output of the following C++ code? #include <iostream> #include <array>   using namespace std;   int main(int argc, char const *argv[]) { array<int,arr arr1.fill(2); for(int i=0;i<5;i++) cout<<arr1[i]; cout<<endl; return}
Q.6.
What will be the output of the following C++ code? #include <iostream> #include <array>   using namespace std;   int main(int argc, char const *argv[]) { array<int,arr arr1.fill(5); cout<<get<5>(arr1); return}
Q.7.
What happens when both of the following C++ programs are compiled and executed? ===== Program 1 ===== #include <iostream> #include <array>   using namespace std;   int main() { array<int,arr arr1.fill(5); cout<<get<5>(arr1); return} ===================== ===== Program 2 ===== #include <iostream> #include <array>   using namespace std;   int main() { array<int,arr arr1.fill(5); cout<<arr1.at(5); return} =====================