题目内容

若有以下程序void f(int n);main(){ void f(int n);f(5);}void f(int n){ printf("%d\n",n); }则以下叙述中不正确的是

A. 若只在主函数中对函数f进行说明,则只能在主函数中正确调用函数f
B. 若在主函数前对函数f进行说明,则在主函数和其后的其它函数中都可以正确调用函数f
C. 对于以上程序,编译时系统会提示出错信息:提示对f函数重复说明
D. 函数f无返回值,所以可用void将其类型定义为无值型

查看答案
更多问题

下面程序输出的结果是 【 】#define MAX 3int a[MAX];main(){ fun1( ); fun2( a ); printf("\n");}fun1( ){ int k, t=0;for (k=0;k

Listen to the following short conversations twice and choose the best answer to each question you hear in the recording.

A. $6.00.
B. $10.50.
C. $15.00.
D. 9.50.

Listen to the following short conversations twice and choose the best answer to each question you hear in the recording.

A. He wants to have a talk with her.
B. He asks her to see the director.
C. He asks her what she can do for him.
D. He asks her to make a schedule for his meeting with the director.

Listen to the following short conversations twice and choose the best answer to each question you hear in the recording.

A. 75.
B. 50.
C. 30.
D. 25.

答案查题题库