How to input a stream of string in an array

pplzz tell all psssible ways to input stream of string in an array

how to input string in which we dont know about its length

@Aditya-Kushwaha-914550392281281 hey if length is not known then apply the condition that while(user is giving input) take input,otherwise not,this is way in c++,in java we have methods but c++ me aise hi normally hota hai.

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.