How does one reset an array, to make it retain its size but get rid of all data it has stored?
Would one do it by setting all the array values to '\0'?

Thanks again, Wolfpack. Should I set the character to '\0' to make an empty array, though?

if its a character array then initialize it with '\0' and if its an integer array then initilize it with 0

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.