C Tutorial/Pointer/Pointer Introduction — различия между версиями

Материал из C\C++ эксперт
Перейти к: навигация, поиск
м (1 версия: Импорт контента...)
 
м (1 версия: Импорт контента...)
 
(нет различий)

Текущая версия на 13:32, 25 мая 2010

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.