Chủ nhật, 19/05/2024
IMG-LOGO

Câu hỏi:

14/10/2022 70

What will happen if in the C program you assign a value to a array element whose subscript exceeds the size of array?

A. The element will be set to 0.

B. The complier would report an error.

C. The program may crash if some important data gets overwritten

Đáp án chính xác

D. The array size would appropriately grow

Trả lời:

verified Giải bởi Vietjack

Chọn C

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:

If the file tobe included does not exist, the preprocessor flashes an error message

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

Câu 2:

What will be output of the program?
Media VietJack

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

Câu 3:

Which of the following adds one string to the end of another?

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

Câu 4:

Is there any difference between following declarations?
Media VietJack

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

Câu 5:

What is output of the program?
Media VietJack

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

Câu 6:

A float is 4 byte wide, whereas a double is 8 byte wide

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

Câu 7:

Name of functions in two different files linked together must be unique.

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

Câu 8:

In which standard library file is the function printf( ) located?

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

Câu 9:

Why are a function phototypes useful?

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

Câu 10:

Which function is used to read the input from console?

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

Câu 11:

We want to round off x, a float, to an int value, The correct way to do is:

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

Câu 12:

What will be output of program?
Media VietJack

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

Câu 13:

Functions cannot return more than one value at a time

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

Câu 14:

What will be output of the program?
Media VietJack

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

Câu 15:

A long double can be used if range of a double is not enough to accommodate a real number?

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