79588453

Date: 2025-04-23 11:09:04
Score: 2
Natty:
Report link

I find a bit funny that nobody used recursive solution, which can fit one line as well

size_t strlen_rec(const char*str) {
  return *str ? 1+strlen_rec(str+1) : 0;
}

but its not tail case recursive, so stackoverflow is guaranteed

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Владимир GhostV