#include #include int y = 0; void main() { { int x = 0; x++; ++y; } printf(“%dt%d”, x, y); getch(); } What is output ?

#include

#include

int y = 0;

void main()

{

{

int x = 0;

x++;

++y;

}

printf(“%dt%d”, x, y);

getch();

}

What is output ?

A. 1 1

B. 1 0

C.  ‘x’ undeclared identifier

Hướng dẫn

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

Xem lời giải

Xem lời giải

Biến x là biến cục bộ, nên trình biên dịch sẽ báo lỗi tại lệnh printf().

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 3:00 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