单选题

下面程序会输出什么

发布于 2022-03-03 14:16:30

下面程序会输出什么:
#include <stdio.h>
#include <string.h>
static int a = 1
void fun1(void) { a = 2 }
void fun2(void) { int a = 3 }
void fun3(void) { static int a = 4 }
int main() {
    printf("%d", a)
    fun1()
    printf("%d", a)
    fun2()
  printf("%d", a) 

  fun3( )

  printf("%d", a)
}


登录后免费查看答案
关注者
0
被浏览
31
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看