I am using scanf
to get an input. But when I run this code:
#include<stdio.h>
int main(){
unsigned char in,b;
scanf("%u %u",&in,&b);
printf("%u %u\n",in,b);
return 0;
}
when I input, for example, 12 3
, the output is 0 3
.
This also happends when I instead of scanf("%u %u",&in,&b);
write scanf("%u",&in);scanf("%u",&b);
.
Thanks for reaching out.