Immediate reply !! :) :) thank you.
Yeah that 's one solution too, but i am wondering are there other more efficient solutions (dont have to use an array).
anyway , thank you for your reply :)...
User Profile
Collapse
-
Arbitrary String Length by Dynamic Memory Allocation to a Pointer
Well, thank you for reading this question . Any answers or ideas are very appreciated .
I am new in C and i have a proplem . I want to write a program that accept some strings from the users , i want to use Dynamic Memory Allocation to a pointer depending on the length of the string entered by the user.
Here i have had a search in this forum and i found one solution is to ask the length of the string in advance
...
No activity results to display
Show More
Leave a comment: