Questions about shift ????? Please give a guidance? Thank you! Wan! Thank you !!

xiaoxiao2021-03-06  14

plan 1:

INT i = 32;

INT x = -1;

X = 1 << 32;

Scenario 2:

INT i = 32;

INT x = -1;

X = 1 << i;

In VC6 and VC7, the X of the scheme 1 is: 0; the X of the scheme 2 is: 1

In C # and Java, the X of the scheme 1 is: 1; the X of the scheme 2 is: 1

Ask a high guidance? Thank you! Wan! Thank you !!

转载请注明原文地址:https://www.9cbs.com/read-50226.html

New Post(0)