Câu hỏi:

26/07/2022 294 Lưu

In the following program where is the variable a getting defined and where it is getting declared?
Media VietJack

A. Extern int a is declaration, int a = 20 is the definition
B. Int a = 20 is declaration, extern int a is the definition
C. Int a = 20 is definition, a is not defined
D. a is declared, a is not defined

Quảng cáo

Trả lời:

verified Giải bởi Vietjack

Chọn A

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

Câu 1

A. append();
B. stringadd();
C. strcat();
D. stradd();

Lời giải

Chọn C

Câu 2

A. scanf( )
B. printf( )
C. getch( )

Lời giải

Chọn B

Câu 3

A. compare();
B. stringcompare();
C. cmp();
D. strcmp();

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Câu 4

A. ceil(1.66)
B. floor(1.66)
C. roundup(1.66)
D. roundto(1.66)

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Câu 5

A. y = (int)(x + 0.5)
B. y = int(x + 0.5)
C. y = (int)x + 0.5
D. y = (int)((int)x + 0.5)

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Câu 6

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
D. The array size would appropriately grow

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP

Lời giải

Bạn cần đăng ký gói VIP ( giá chỉ từ 199K ) để làm bài, xem đáp án và lời giải chi tiết không giới hạn.

Nâng cấp VIP