3 ms·
Just FYI - code: sizeof buffer - sizeof(buffer[0]) is looking unconventional. Couple of reasons... You generally want to avoid +1 / -1 in your code. You d
by dchichkov 14y ago
Just FYI - code:
sizeof buffer - sizeof(buffer[0])
is looking unconventional. Couple of reasons... You generally want to avoid +1 / -1 in your code. You don't want to write sizeof() without parenthesis, - it reduces readability.
- pitkali 14y agoPop quiz: what are possible results of running sizeof(char)? It's just another thing to note ;)