`
int main(){
char a[10];
char he[10]="hello";
char c[10]="password";
printf("please enter a string:\n");
scanf("%s",a);
printf("your string is :%s\n",a);
printf("your string is :%s\n",he);
printf("your string is :%s\n",c);
}
`
I watched some videos about vulnerabilities on scanf and gets functions ,and as I
saw when someone entered a number of characters that highest than the size of the array a ,the remains
characters overwrites the next array ,but that's not the case in my program so i want the know why?