C语言第8天的视频少第一个视频,我把代码打出来了,谁能给解释一下:- #include <stdio.h>
- int main(int argc, const char * argv[]) {
-
- short int a=1;
- short int a1=a<<15;
- a1=(a<<15)-1;
- printf("%hd\n",a1);
-
- int b=1;
- int b1=b<<31;
- b1=(b<<31)-1;
- printf("%d\n",b1);
-
- long int c=1;
- long int c1=c<<63;
- c1=(c<<63)-1;
- printf("%ld\n",c1);
- return 0;
- }
复制代码
|
|