3 ms·
Where would you put it? The const of the pointer is not the main point, it's just extra clarity that the allocated pointer is not as easily overwritten which wo
by unwind 10mo ago
Where would you put it? The const of the pointer is not the main point, it's just extra clarity that the allocated pointer is not as easily overwritten which would leak the memory.
- f1shy 10mo agoI put it attached to the variable name when possible, if not attached to the type.