Character Array cin.getline query

Why do we write cin.getline(a[i], 1000) instead of just cin.getline(a[i]) ? What is the significance of ,1000 in this statement?

@yobasu2015 1000 specifies the length of input it should take, it no length is specified then it will read till end of line.
If this resolves your doubt mark it as resolved.