How to take input?

Is it neccessary to use arrays ,if yes how will we do that because the length of arrays in not given and also we can do it by using cin.get() right?

hello @akash_281
use char array i.e string.
and to read string u can simply do.
cin>>string_name;