I'm programming this in win32 with C++. I have a struct with 47 elements of varying types from strings to BOOLs. I then set up an array of 1000 entries for this struct. I read/write these from/to a file. Some of the operations include deleting some of the records. I'd like to fully clear the array prior to my read operations. Is this how I should clear it:
BOOL Sen, Jun, Wom, ...;
memset(comp, 0, sizeof(competitors)*1000);
Or, can I just use:
memset(comp, 0, sizeof(comp));
Or is there something better since this is in Windows?