Re: Reading a string of unknown size



Sundar wrote:

I am unable to understand the intricacies of the above statement.

Then understand a couple of simpler statements:

1. Do not cast the return value of malloc().

2. If you use malloc() and/or free(), be sure to #include stdlib.h


No intricacies needed :-)

.