15 ms·
What about size of stored bool variable? Just using int will take 4 bytes (Or something else, but still bigger then 1), while stdbool will only use 1 byte, no?
by Xeamek 3y ago
What about size of stored bool variable? Just using int will take 4 bytes (Or something else, but still bigger then 1), while stdbool will only use 1 byte, no?
- kazinator 3y agoIn arrays, you can use char. In structs, there are also bitfields like unsigned flag : 1.