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.