#include <stdio.h>
int main() {
char name[4];
printf("enter name: ");
scanf("%s",name);
printf("Hello %s",name);
return 0;
}
Out put:
enter name: 012345
Hello 012345
How come it doest error ?
char name[4]
should only hold 3 characters w. a null at the end.
Why is this case different?