原创:
http://blog.163.com/wupengzhi2005@126/blog/static/17101002201082965021807/
// sizeof(a=0)
#include
<stdio.h
>
int main
()
{
int a
=
-
1;
int b
=
sizeof
(a
=
0)
;
// 程序实际输出-1
// 原因:
// sizeof在编译连接阶段进行处理,没有对a=0进行处理 printf
(
"%d/n"
, a
);
return
0;
}
转载请注明原文地址: https://ibbs.8miu.com/read-2226497.html