Recommended Answers
Jump to PostHere you are declaring the array within the function and then returning it to the main. This kind of things always do create problems as the local variable is tried to destroy as soon as the control comes out of that function.
So its better always to create the …
Jump to Post>The problem is that it appears to be working.
Welcome to the world of C. Just because it appears to work doesn't mean it's guaranteed to continue working.>Will pointing to the first element of an array stop the
>memory from being unallocated (or whatever)?
No. The only reason …
All 7 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.