1. strings are 6 character long but initialized to 5. Correct initialization would be str1 = "vector", str2="vectoa";
2. Expected behaviour of strcmp. strcmp returns the distance between first difference between two strings.
strcmp(str1, str2) for strings defined as in #1 would be 17 (ascii (r) - ascii(a)).
for str1 = "vector", str2 = "vectop", strcmp(str1, str2) will return 2 (ascii (r) - ascii(p))
As for i = 118, because of comparing unintended values (could be ascii(v) - ascii(NULL) ??)