sizeof(a=0)

    技术2022-05-20  49

    原创: 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; }

    最新回复(0)