3 ms·
Conflating pointers and arrays seem pretty minor and not the cause for many bugs. The main source of bugs in C to me would be pointer arithmetics.
by hota_mazi 8y ago
Conflating pointers and arrays seem pretty minor and not the cause for many bugs.
The main source of bugs in C to me would be pointer arithmetics.
- WalterBright 8y agoPointer arithmetic is mainly used to access arrays, and is where the buffer overflows come from. Using actual arrays instead allows the compiler to insert overflow checking code.