Which of the following operations are INCORRECT?

Which of the following operations are INCORRECT?

A.  int i = 35; i = i%5

B. short int j = 5; j = j;

C. long int k = 123L; k = k;

D. float a = 3.14; a = a%3;

Hướng dẫn

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

Xem lời giải

Xem lời giải

Toán tử % chỉ dùng cho số nguyên

 

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

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

Tài liệu hay phù hợp tiêu chí cho: Which of the following operations are INCORRECT?

Bạn đang xem: Which of the following operations are INCORRECT? trong chuyên mục: HỎI VÀ ĐÁP

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site