#include #include void main() { void v = 0; printf(“%d”, v); getch(); } Point out a error in the following program

#include

#include

void main()

{

void v = 0;

printf(“%d”, v);

getch();

}

Point out a error in the following program

A. Error: Declaration syntax error v (or) ‘v’: illegal use of type ‘void’

B.  Program terminate abnormally

C. No error

D. None of these

Hướng dẫn

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

Xem lời giải

Xem lời giải

Dùng kiểu con trỏ void* để trỏ đến kiểu dữ liệu khác.

 

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