This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

printf outputs wrong result when do multiplication

volatile unsigned char a;

a = 3;
printf("%u\n", a * 100);

The output is 11264. Why?

Any reply would be greatly appreciated.

0