Книга: Advanced PIC Microcontroller Projects in C

3.1.10 Static Variables

3.1.10 Static Variables

Static variables are local variables used in functions (see Chapter 4) when the last value of a variable between successive calls to the function must be preserved. As the following example shows, static variables are declared using the keyword static:

static unsigned int count;


Генерация: 0.848. Запросов К БД/Cache: 3 / 0
поделиться
Вверх Вниз