I have a sample weird code like this:
#include<stdio.h>
int main(){
int t;
scanf("%d", &t);
while(t--){
char s[1];
scanf("%s", s);
}
}
I have test that if I have t from input that > 1 ( like t = 3) then put a single character to s, then the program ends, while t hasn't downed to 0 yet. Could anyone explain for me what happens here. Thanks for your help!