#include #include void main() { printf(“%d %d %d”, sizeof(3.14), sizeof(3.14f), sizeof(3.14l)); getch(); } What will be output of the program?

#include

#include

void main()

{

printf(“%d %d %d”, sizeof(3.14), sizeof(3.14f), sizeof(3.14l));

getch();

}

What will be output of the program?

A. 8 4 8

B. 4 4 8

C. 4 8 10

D. 4 8 12

Hướng dẫn

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

Xem lời giải

Xem lời giải

3.14 là hằng số kiểu double

3.14f là hằng số kiểu float

3.14l là hằng số kiểu long double

 

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

Đánh giá chủ đề này
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