Danh Trịnh
New member
#include<stdio.h>
void main()
{
int a;
a = f(1, 3.14);
}
float f(int a, float b)
{
return ((float)a + b);
}[/CODE]
There is a error in the below program. Which statement will you add to remove it
A. Add prototype: float f(int, float);
B. Add prototype: float f(a, b);
C. Add prototype: float f(float a, int b)
void main()
{
int a;
a = f(1, 3.14);
}
float f(int a, float b)
{
return ((float)a + b);
}[/CODE]
There is a error in the below program. Which statement will you add to remove it
A. Add prototype: float f(int, float);
B. Add prototype: float f(a, b);
C. Add prototype: float f(float a, int b)
Chọn A là đáp án đúng