为了账号安全,请及时绑定邮箱和手机立即绑定

#include <stdio.h> int x = 77; void fn1() { printf("fn1(): x=%d\n", x); } int main() { int x = 10; if(x>0) { static x = 100; x /= 2; printf("if语句内, x=%d\n", x); } printf("main方法内, x=%d\n", x);

#include <stdio.h>

int x = 77;

void fn1()

{

    printf("fn1(): x=%d\n", x);       

}

int main()

{

    int x = 10;

    if(x>0)

    {

         static x = 100;

        x /= 2;

        printf("if语句内, x=%d\n", x);       

    }

    printf("main方法内, x=%d\n", x);

    fn1();

    return 0;

}


正在回答

3 回答

期待~越快越好。。。

ppddqydkztbihmsnwdapjfyvlztruuhqqazrngnfefgjy

0 回复 有任何疑惑可以回复我~

++++++++++++++++++++++++++++

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

#include <stdio.h> int x = 77; void fn1() { printf("fn1(): x=%d\n", x); } int main() { int x = 10; if(x>0) { static x = 100; x /= 2; printf("if语句内, x=%d\n", x); } printf("main方法内, x=%d\n", x);

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信