Книга: Advanced PIC Microcontroller Projects in C
3.1.11 External Variables
3.1.11 External Variables
Using the keyword extern before a variable name declares that variable as external. It tells the compiler that the variable is declared elsewhere in a separate source code module. In the following example, variables sum1 and sum2 are declared as external unsigned integers:
extern int sum1, sum2;
Содержание
Оглавление статьи/книги
- 3.1.1 Comments
- 3.1.2 Beginning and Ending of a Program
- 3.1.3 Terminating Program Statements
- 3.1.4 White Spaces
- 3.1.5 Case Sensitivity
- 3.1.6 Variable Names
- 3.1.7 Variable Types
- 3.1.8 Constants
- 3.1.9 Escape Sequences
- 3.1.10 Static Variables
- 3.1.11 External Variables
- 3.1.12 Volatile Variables
- 3.1.13 Enumerated Variables
- 3.1.14 Arrays
- 3.1.15 Pointers
- 3.1.16 Structures
- 3.1.17 Unions
- 3.1.18 Operators in C
- 3.1.19 Modifying the Flow of Control
- 3.1.20 Mixing mikroC with Assembly Language Statements
Похожие страницы
- Variables
- 3.1.10 Static Variables
- 3.1.12 Volatile Variables
- 3.1.13 Enumerated Variables
- 6. Variables
- Безопасность внешних таблиц. Параметр EXTERNAL FILE DIRECTORY
- EXTERNAL FUNCTION DIRECTORY
- Using Double Quotes to Resolve Variables in Strings with Embedded Spaces
- Using Environment Variables
- External Command
- Perl Variables and Data Structures
- Special Variables