If I removed result[size] = '\0';, what error would occur and why?
char *every_nth(char *s, int n) {
3
4 int size = strlen(s) / n;
5
6 char *result = malloc(sizeof(char) * size + 1);
7
8 int i = 0;
9 for(i = 0; i < size; i++) {
10 result[i] = s[i * n];
11 }
12
13 result[size] = ’\0’;
14
15 return result;
16
17 }