Although my array is only of size 3, and I've assigned a char to each element, a NULL Terminator is still automatically added. What is causing a NULL Terminator to be added in my code?
int main(void)
{
char s[3];
s[0] = 'f';
s[1] = 'o';
s[2] = 'o';
int i = 0;
while (s[i] != '\0')
printf("%c", s[i++]);
printf("\n");
if (s[i] == '\0')
printf("Null Terminator Added\n");
}