In this section, we will discuss about two dimensional array. Two dimensional array are known as matrix. They are indexed by two subscripts, one for row and another for column.

This program has four functions

- Insert Elements – To add elements to a Matrix
- Show Elements – To show elements of a Matrix
- Add Matrix – To add two matrix
- Get Determinant – To get the determinant of the Matrix

It is implemented in C++. The code is shown below

```
#include<iostream>
using namespace std;
void insert_elements(int arr[2][2]){
cout<<"Enter the elements of matrix"<<endl;
for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
cout<<"arr["<<i<<"]["<<j<<"] : ";
cin>>arr[i][j];
}
}
}
void show_elements(int arr[2][2]){
cout<<"The elements of matrix are "<<endl;
for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
cout<<arr[i][j]<<" ";
}
cout<<endl;
}
}
void get_determinant(int arr[2][2]){
cout<<"The determinant is ";
cout<<(arr[0][0]*arr[1][1]-arr[0][1]*arr[1][0])<<endl;
}
void add_matrix(int a[2][2],int b[2][2],int c[2][2]){
cout<<"Adding two matrix"<<endl;
for(int i=0;i<2;i++){
for(int j=0;j<2;j++){
c[i][j] = a[i][j]+b[i][j];
}
}
show_elements(c);
}
int main(){
int a[2][2],b[2][2],c[2][2];
insert_elements(a);
show_elements(a);
get_determinant(a);
cout<<"Second Matrix"<<endl;
insert_elements(b);
show_elements(b);
add_matrix(a,b,c);
return 0;
}
```

The output of the program is shown below

Like!! I blog quite often and I genuinely thank you for your information. The article has truly peaked my interest.

Like!! Thank you for publishing this awesome article.

I like the valuable information you provide in your articles.

I really like and appreciate your blog post.

These are actually great ideas in concerning blogging.

Thank you ever so for you article post.

I always spent my half an hour to read this web site’s articles or reviews daily along with a mug of coffee.

Thanks for fantastic info I was looking for this info for my mission.

Thanks so much for the blog post.

I really like and appreciate your blog article.Really looking forward to read more.

Enjoyed every bit of your blog article. Keep writing.

I value the blog.Really thank you! Much obliged.

I truly appreciate this blog.Thanks Again. Keep writing.

Hey, thanks for the blog article.Thanks Again. Want more.

Thanks for sharing, this is a fantastic article post.Really thank you! Fantastic.

Im thankful for the blog.Much thanks again. Awesome.

Thanks again for the blog. Really Great.

Hey, thanks for the blog article. Will read on…

Really enjoyed this blog article.Much thanks again. Fantastic.

Thanks again for the post.Thanks Again. Fantastic.

Really appreciate you sharing this article.Much thanks again.

I appreciate you sharing this blog post.Really looking forward to read more.

wow, awesome article post.Thanks Again. Really Cool.

Thanks for sharing, this is a fantastic post.Much thanks again. Fantastic.

I loved your article post.Much thanks again. Really Cool.

I truly appreciate this article post.Really looking forward to read more. Great.

Really enjoyed this blog article.Really looking forward to read more.

I value the blog post.Really looking forward to read more. Great.

Very good blog article.Really looking forward to read more. Want more.

I truly appreciate this blog article. Will read on…

Major thankies for the blog article.Thanks Again.

Really appreciate you sharing this article post.Thanks Again. Great.

I really enjoy the blog article. Great.

Im thankful for the article. Want more.

Muchos Gracias for your article post.Really looking forward to read more. Really Cool.

Thanks for the blog post.Thanks Again. Really Great.

Very neat article post. Keep writing.

Thanks for the blog. Cool.

Hey, thanks for the blog article.Thanks Again. Fantastic.

Thank you for your article post.Thanks Again. Will read on…

I appreciate you sharing this article. Really Great.

Muchos Gracias for your article.Thanks Again. Much obliged.

Major thanks for the post.Really thank you! Much obliged.

Im grateful for the article. Cool.

Enjoyed every bit of your post. Great.

Awesome blog.Really thank you! Keep writing.

This is one awesome blog article.Really looking forward to read more. Fantastic.

Thanks for the blog post.Really thank you! Keep writing.

Im obliged for the blog.Thanks Again. Really Great.

Thanks a lot for the blog.Really looking forward to read more.

Very good article.Much thanks again. Great.

Really enjoyed this post.Much thanks again. Want more.

Really appreciate you sharing this article.Thanks Again. Much obliged.

Looking forward to reading more. Great article.Really thank you! Awesome.

Thanks for sharing, this is a fantastic post.Much thanks again. Cool.

I really enjoy the post.Thanks Again. Will read on…

Enjoyed every bit of your article post.Thanks Again. Will read on…

I cannot thank you enough for the blog. Keep writing.

Wow, great article.Really thank you! Will read on…