So I have this code:
#include <stdio.h>
int main()
{
printf("enter character\n>>>");
char input[0];
scanf("%5s",input);
printf("%s",input);
}
that excepts 5 chars from the user. I am new to C and this one thing makes no sense to me. Why does gcc allow me to compile a program that assigns values to an array with a length of 0? Surely this is not possible? Please explain.