#include void main() { int a; a = f(1, 3.14); } float f(int a, float b) { return ((float)a + b); } There is a error in the below program. Which statement will you add to remove it

#include

void main()

{

int a;

a = f(1, 3.14);

}

float f(int a, float b)

{

return ((float)a + b);

}

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)

Hướng dẫn

Chọn A là đáp án đúng

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 3:03 chiều

Đánh giá chủ đề này