Poll: Kiểm tra kiến thức C - 3.05

Các bạn thảo luận đáp án nhé, bài test lấy từ http://www.indiabix.com/online-test/c-programming-test/13
5.What does the following declaration mean?

int (*ptr)[10];

  • A. ptr is array of pointers to 10 integers
  • B. ptr is a pointer to an array of 10 integers
  • C. ptr is an array of 10 integers
  • D. ptr is an pointer to array
3 Likes

Nhiều bạn trả lời đúng câu này thế. Giới thiệu một tool giúp mình dịch mấy cú pháp khó trong C

Bài này mình nhập vào: int (*x)[]
http://cdecl.org/

1 Like

Cách đọc những dạng phức tạp như thế này xem ở đây:
http://ieng9.ucsd.edu/~cs30x/rt_lt.rule.html

1 Like
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?