Hello everyone, my name is (name) and we are continuing with this C programming course in which we discussed the last video arrays used in C programming.
We saw the importance of the arrays.
And after that we saw how these arrays are declared and initialised.
After seeing all these things, we also saw that when we initialise the array, after that if we want to extract the stored value inside them, we have to access them, in which way we can access them.
Now comes the time for us to know what the types of arrays are.
So, we are talking about types of arrays in C programming.
We will go ahead and see which all types are there.
We can see here that there are basically two types of arrays in C programming.
And what are the names of both these types of arrays? One is called a one-dimensional array and the other is called a multidimensional array.
With this we understood that X and Y are few dimensions, along with that if we see any 3D figure, its reading comes on the 3rd dimension or on the Z axis.
So, in this way based on the dimensions we can check whether our diagram is 2D or 3D.
In this way the involvement of the dimensions, that we basically consider to find out that the array is a one-dimensional array or it is a multi-dimensional array.
We will understand both of them one by one, first of all we will understand what this single dimensional array is.
Before this, we had learned about arrays in a few videos, we saw that if we have to make the same type of variable multiple times.
In this case, we will have to keep different names.
This is the reason why we invented arrays.
What happens is the array, only one name is given for any type of value.
And a long chain is made of those values.
So, this chain that we were talking about in the last video, this is a single chain, these are connected to each other with this single chain and we call this single chain a single-dimensional array or one-dimensional array.
So, this one dimensional or 1D array which is there, these are very simple, they are one line arrays.
Which means the 1st block of our
array, in which we store the value, the first one.
It will be interconnected to another block and in the same way third, fourth, fifth.
In this way the chain goes on elongating.
This way the chain becomes longer.
But in this there is one thing to pay attention to, its direction or its dimension would be one sided.
It gets long only by one side.
It is not that sometimes we join any block on the top or at the bottom.
This doesn't happen in a single dimensional array, in a single dimensional array, one block is attached to another block and then the 3rd one is connected to the 2nd one, it is not connected to the 3rd one.
So, the single-dimensional arrays are of this type.
And we have seen its example before in which we are making an integer type array.
And the array's name is R O L L, which means roll number one, R O L L .
After that we have written the size of the arrays in the square brackets.
So, this is the way to declare our array.
Here we are talking about a single- dimensional array.
Now we are clear about one-dimensional or single-dimensional arrays.
Now we will move ahead and see our second type of array, which means multidimensional array.
How does it look and how can it be declared? Here you can see in the example, we have made an integer type of array.
Again the name of the array is R O L L, roll.
But you can see the number of square brackets which are used here.
They have increased.
Earlier in one dimension there used to be only one square bracket, in which whatever sizes we have written that would be the size of that particular chain.
But in multidimensional you would see that you can see more than one square brackets.
And then you saw that dot, dot, dot is also used.
That means we can increase the number of square brackets as per our wish.
This is the way the multi-dimensional array is.
So, you can understand the number of square brackets, based on that we can say that if there is a pair of single square brackets, we can say that we are seeing a one-dimensional array.
But if that becomes more than one pair of our square brackets, then we will call it a multidimensional array.
Now we will see how this is multi-dimensional.
“The C programming language provides us with a multi-dimensional array.
Out of which we will discuss a two-dimensional array”.
Here is what we are saying, C programming allows us to make multi-dimensional arrays, but now since multi-dimensional arrays will become complex to make.
So, we will see two-dimensional arrays and understand.
The further dimensional arrays, as and when we will get familiar with 2D or 1D arrays, so we will be able to understand further arrays easily.
And we will be able to see and understand them easily.
So, this was the overview about the types of arrays.
There were single and multi- dimensional arrays.
So, we have known the basic difference between these two.
If you have any queries or comments, click the discussion button below the video and post there. This way, you will be able to connect to fellow learners and discuss the course. Also, Our Team will try to solve your query.
In the coming video, what we would be seeing is we would be seeing about the two-dimensional array.
Which means we saw that in a dimensional array there would be more than one pair of square brackets.
They could be 2 or 3.
If there are 2, we will call them two-dimensional and if there are 3, it will be called a third dimension one, a three-dimensional array.
All these things we will be seeing in the coming videos.
Till that time, you keep practising arrays and we will see you in the next video.
Thank you so much.
Share a personalized message with your friends.