use modifiers before format characters to specify the width of the input data, such as the following program, the input abcde, wants to output an abcde, but the order in which the character variables are declared makes the results different. what is the reason? I really don"t understand. I hope the bosses will not hesitate to give us advice
-sharp include<stdio.h>
int main(){
char c1,c2;
scanf("%3c%2c",&c1,&c2);
printf("%c,%c",c1,c2);
return 0;
}
input: abcde
output: e
-sharp include<stdio.h>
int main(){
char c2,c1; // why?
scanf("%3c%2c",&c1,&c2);
printf("%c,%c",c1,c2);
return 0;
}
input: abcde
output: a