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

Question for "<<"

Hi all

I write a sample code like

a = 1 << b;

when b = 0 , The result for a will get 2

If I uncheck "Enable ANSI integer promotion rules " ,It will get correct answer 1

can anyone tell me why ??

Thanks a lot

0