Difference between cin.get() - cin.getline()

this code looks so lengthy

#include
using namespace std;
int main()
{
char ch[100];
cin.getline(chm100);
cout << ch;
}

why we use cin.get() when we have another good option?

here you have use cin.getline()
not cin.getline()

you can learn diff b/w cin.get() and cin.getline()
from here

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.