Why does this code work? There isn't enough space in the array to store the 6-char string (including the null-character) yet the program works.Code:#include <stdio.h> #include <stdlib.h> int main() { char str[1]; fgets(str, 100, stdin); //inputs hello printf("%s", str); //outputs hello return 0; }