3 ms·
A more useful example would be struct { char a; char b; char c; }a; memset(&a, 0, 2 * sizeof(char)); IE trying to cle
by SAI_Peregrinus 7y ago
A more useful example would be
struct {
char a;
char b;
char c;
}a;
memset(&a, 0, 2 * sizeof(char));
IE trying to clear only part of a struct using memset. Clearly not a great way to do things.