Cin.getline and no declaration for no of rows of 2D array

1.cin.getine() is not working properly,its taking input but its not terminating.Can you give the correction so that cin.getline() will work
2.Why no of rows are not declared for 2D array

hi @KetanPandey

Please provide link of your code so that i can point out your mistake

for now
correct syntax of cin.getline() is
cin.getline(nameOfString,size,delimiter);

char str[1000];
cin.getline(str,1000,’\n’)

i have sent you the code but prateek bhayia told that delimitter is default new line,so i havent mentioned it

yes by default delimiter is ‘\n’
and no need to put that

but i have not your code
please send it so that i can see your mistake

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.