for example my array is test[10],
and i want to clear 2 of the 10 memory, how to do that??
tech9x 0 Light Poster
Recommended Answers
Jump to Post— Isaac Remuant 40You can't manually clear the memory of static arrays. The memory of that array won't be cleared until you leave the scope where it was declared (scope is, in this case, the space within the curly braces)
example:
void exampleFunc() { int aaa[32]; } //when the …
All 4 Replies
Isaac Remuant 40 Newbie Poster
tech9x 0 Light Poster
jonsca 1,059 Quantitative Phrenologist Team Colleague Featured Poster
tech9x 0 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.