unsigned char x=1; x=(x++)<<3;
x=(++x)<<3; works it gives 16
Since this equation produces undefined behavior, there is no right answer IMHO. See:
http://www.eskimo.com/~scs/C-faq/q3.3.html
x = x + 1 << 3;
To Keil Discussion Forum site: Add the following suggestion to your "Tips for Posting Measages". If you type an URL like
<pre>TheUrl</pre>
Actually, there is no need to use the <pre> and </pre> tags for URLs at all - the forum automatically makes URLs clickable (as it says in the Tips). It seems that it's this automatic conversion to a link which has gone wrong - it's caught the closing </pre> tag inside the closing </a> link tag! So yes, a space (or newline?) before the </pre> would probably have fixed it.
Sorry about that, I didn't mean to use the pre tag at all. - Mark