Chủ nhật, 09/03/2025
IMG-LOGO

Câu hỏi:

16/06/2024 71

Point out a error of the following program
Media VietJack

A. Missing parenthesis in return statement

B. The function should be defined as int f(int a, int b)

Đáp án chính xác

C. Re-declaration of a

D. None of above

Trả lời:

verified Giải bởi Vietjack

Chọn B

Câu trả lời này có hữu ích không?

0

CÂU HỎI HOT CÙNG CHỦ ĐỀ

Câu 1:

Usually recursion works slower than loops

Xem đáp án » 14/10/2022 107

Câu 2:

Will the following functions work?
Media VietJack

Xem đáp án » 14/10/2022 104

Câu 3:

What will be the output of the program?
Media VietJack

Xem đáp án » 14/10/2022 102

Câu 4:

In a function two return statements should never occur.

Xem đáp án » 14/10/2022 101

Câu 5:

There is a error in the below program. Which statement will you add to remove it
Media VietJack

Xem đáp án » 14/10/2022 101

Câu 6:

Which of the following statements are correct about the program?
Media VietJack

Xem đáp án » 14/10/2022 101

Câu 7:

Every function must return a value

Xem đáp án » 14/10/2022 99

Câu 8:

Functions can not return a floating point number

Xem đáp án » 14/10/2022 98

Câu 9:

Maximum number of arguments that a function can take is 12

Xem đáp án » 14/10/2022 95

Câu 10:

What is output ?
Media VietJack

Xem đáp án » 14/10/2022 93

Câu 11:

What will be the output of the program?
Media VietJack

Xem đáp án » 14/10/2022 92

Câu 12:

What will be output of the program?
Media VietJack

Xem đáp án » 14/10/2022 88

Câu 13:

Output of following code?
Media VietJack

Xem đáp án » 14/10/2022 87

Câu 14:

Point out the error in the following program (if it is compiled with Turbo C complier)
Media VietJack

Xem đáp án » 14/10/2022 86

Câu 15:

What is output?
Media VietJack

Xem đáp án » 14/10/2022 85