79223304

Date: 2024-11-25 13:52:29
Score: 1
Natty:
Report link

int sizeV = sizeof(v) / sizeof(v[0]);int sizeV = sizeof(v) / sizeof(v[0]); delivers not what you want:

sizeof(v) is the size of the pointer, not the string length. On 64-bit architecture: sizeof(v) == 8, sizeof(v[0]) == 1

Use strlen() or create a loop to find out the string length.

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