In C, when there are many repeated values, we can use a shorthand array notation to define array. Below program demonstrates same.
1 1 1 1 0 0 2 2 2 2
Note that middle gap of 2 is automatically filled with 0.
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.