当前位置: 答题翼 > 问答 > 求职面试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

8 写出下列程序所有可能的运行结果。 int a; int b; int c; void F1() { b=a*2; a=b; }


8 写出下列程序所有可能的运行结果。

int a;

int b;

int c;

void F1()

{

b=a*2;

a=b;

}

void F2()

{

c=a+1;

a=c;

}

main()

{

a=5;

//Start F1,F2 in parallel

F1(); F2();

printf("a=%d ",a);

}

请帮忙给出正确答案和分析,谢谢!

参考答案
答案整理中……
您可能感兴趣的试题
  • 写出程序运行的结果 Public class Base Public virtual string Hello() {return “Base”;} Pu

  • 6写出下列程序在X86 上的运行结果。 struct mybitfields { unsigned short a : 4; unsigned short

  • 6写出下列程序在X86 上的运行结果。 struct mybitfields { unsigned short a : 4; unsigned short

  • 7写出下列程序的运行结果。 unsigned int i=3; cout<

  • 7写出下列程序的运行结果。 unsigned int i=3; cout<

  • 8 写出下列程序所有可能的运行结果。 int a; int b; int c; void F1() { b=a*2; a=b; }