C Tutorial/Pointer/Pointer Introduction

Материал из C\C++ эксперт
Перейти к: навигация, поиск

Pointers

  1. Pointers are used manipulate the computer"s memory.
  2. Pointers are declared by using the asterisk(*).

The following line declares an integer pointer, s:


int *s;

The ampersand & is used to get the address.