现有如下程序段 #includestdio.h intaa(intx inty); main() {inta=24 b=16 c; c=aa(a

计算机 程序, 已帮助 人

现有如下程序段

#include "stdio.h"

int aa(int x,int y);

main()

{int a=24,b=16,c;

c=aa(a,b);

printf("%d\n",c);}

int aa(int x,int y)

{int w;

while(y)

{w=x%y;

x=y;

y=w;}

return x;}

则程序段的输出结果是

A.8

B.7

C.6

D.5

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

热搜:屏幕保护程序是指在一段时间内用户没有使用