Your code is nice ..........There are two more bugs in my code.....If the first chara is '\n' it will be printed twice.................. I don't check for EOF....
Thank u for u r...
Type: Posts; User: linuxlover
Your code is nice ..........There are two more bugs in my code.....If the first chara is '\n' it will be printed twice.................. I don't check for EOF....
Thank u for u r...
Your code is nice ......There is also another bug in my code ....If the first chara is '\n' it will print it twice.......... ...Also I don't check for EOF ...Your code is better than mine...
Thank you for finding the mistake in for loop ....
I resolved my problem
There were some other mistakes also .But finally I resolved all of them and gave output..Please tell me if there is any...
My concept is this about realloc..
realloc(p,no. of bytes) resizes the previously allocated memory whose address of first element is p, to a newsize specified by "no. of bytes".This may use the...
OK I understood..
look on attached file which is properly indented.
This is an ideological mistake came due to my low ENGLISH KNOWLEDGE
I need to input a string using dynamic memory allocation and print it until heap is empty.