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:


<source lang="cpp">int *s;</source>

The ampersand & is used to get the address.