```
#include<iostream>
void main()
{int v[100],n,k;
cin>>n;
for(int i=0;i<n;i++) cin>>v[i];
   k=0;
   for(int i=1;i<n;i++)
      if(v[i]==v[i-1]) k++;
      cout<<k;}

```

Hey guys, I'm quite new to arrays and was wondering if someone could tell me what this line of code is doing: 

```
int v[100],n,k;

```

If I'm right in my understanding, I am assuming that we are declaring a array with `100` possible values. However, what is `n` and `k` doing here? I saw a similar piece of code before, and it looked like it was programmed in a way such that the value of k would be inserted into our array `n` number of times.

Is my understanding there correct? I know what the rest of the code is doing but it's just that one line that is confusing.