JavaScript is required

Tìm kết quả của đoạn lệnh sau?

Tìm kết quả của đoạn lệnh sau? (ảnh 1)

A.

A.110

B.

B.10

C.

C.100

D.

D.10100

Trả lời:

Đáp án đúng: A


a = 10, b = a++ (b=10, a=11), c = ++a (a=12, c=12). print(a*b*c) = 12*10*12 = 1440. The code calculates the product of a, b, and c after pre-increment and post-increment operations.

Câu hỏi liên quan