https://idecodingblocks.com/s/358133
in line 6 if i write string *inp, compiler throw compile error
but if i write string inp , program execute why?
https://idecodingblocks.com/s/358133
in line 6 if i write string *inp, compiler throw compile error
but if i write string inp , program execute why?
@officialharshit1996 if you want to do in that way then you have to declare the array of strings as dynamically and then you have to do every thing on array .
and if you are doing like this then you are unnecessarily making your program complicated and when it only depends everything on your logic .
if you still have any doubt you can ask here .
but if you feel that your doubt is cleared you can now mark this doubt as resolved .
Happy Learning !!
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.