单项选择题
有以下程序:
#include <stdio.h>
fun(int x,int y,int z)
z=x*y;
main()
int a=4,b=2,c=6;
fun(a,b,c);
printf("%d",c);
程序运行后的输出结果是( )。
A) 16
B) 6
C) 8
D) 12
热门
试题
单项选择题
有以下程序:#include <stdio, h>#include <string, h>struet STU int nam; float TotalSeore;;void f( strnct STU p) struct STU s[2] = 20044,550 ,20045,537 ; p.num = s [1]. num; p.TotalScore = s [1]. TotalScore;main( ) struct STU s[2] = 20041,703 ,20042,580; f(s[0] ); printf( %d %3. Of n ,s[0].num,s[0].TotalSeore); 程序运行后的输出结果是( )。A) 20045 537 B) 20044 550 C) 20042 580 D) 20041 703