1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Supplementary tasks pointers

7 0 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 7
Dung lượng 348,85 KB

Nội dung

1 Chapter 8 Pointers A Review A 1 What is a pointer? Give at least three examples of pointers of different data types A 2 Differentiate the following expressions when variable is a pointer and when no[.]

Chapter 8: Pointers A Review A.1 What is a pointer? Give at least three examples of pointers of different data types A.2 Differentiate the following expressions when variable is a pointer and when not by determining which expressions are valid and which not, which expressions return a pointer and which not: &variable, *variable, **variable, &*variable, *&variable A.3 What are differences between a fixed-size array of integer numbers and an array of integer numbers controlled via a pointer? int a[5] = {1, 2, 3, 4, 5}; int* aPtr = (int *)malloc(5*sizeof(int)); int i; for (i=0; i

Ngày đăng: 11/04/2023, 18:47