79792147

Date: 2025-10-16 12:34:29
Score: 0.5
Natty:
Report link

The first option, const int size() { return sz; } affects the return type, you can imagine it as something similar to:

using ConstInt = const int;
ConstInt size() { return sz; }

The second option int size() const { return sz; } means that the size() method does not (and cannot) modify the object.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: whiskeyo