3 ms·
Every C++ developer should read this. I've done research on integer arithmetic, which includes some of the pointer arithmetic issues discussed here. This is one
by peripetylabs 14y ago
Every C++ developer should read this. I've done research on integer arithmetic, which includes some of the pointer arithmetic issues discussed here. This is one of the best article I've seen on the subject so far. Thanks for sharing.
This is a small detail, but in C99 you can use the "zu" format specifier for size_t typed arguments of the printf/scanf functions; is this also true for C++? Another tip is to use the PRI* and SCN* macros defined in the C header <inttypes.h> (<cinttypes> for C++):
http://pubs.opengroup.org/onlinepubs/009604599/basedefs/inttypes.h.html http://pubs.opengroup.org/onlinepubs/009604599/basedefs/intt...
http://en.cppreference.com/w/cpp/header/cinttypes http://en.cppreference.com/w/cpp/header/cinttypes