以下程序有语法错误,有关错误原因的正确说法是
#include
void prt_char(float x);
int main()
{
int G=5,k;
......
k=prt_char(G);
......
return 0;
}
int prt_char(int x)
{
......
}
A、函数原型和函数定义不匹配
B、变量名不能使用大写字母
C、函数名不能使用下划线
D、函数prt_char(int x)定义的位置不对,不能放在主函数main()的后面。
#include
void prt_char(float x);
int main()
{
int G=5,k;
......
k=prt_char(G);
......
return 0;
}
int prt_char(int x)
{
......
}
A、函数原型和函数定义不匹配
B、变量名不能使用大写字母
C、函数名不能使用下划线
D、函数prt_char(int x)定义的位置不对,不能放在主函数main()的后面。
C语言程序设计精髓