资料介绍
embedded c programmingChapter 1: Program Structure -- Valvano Chapter 1: Program Structure
What's in Chapter 1? A sample program introduces C C is a free field language Precedence of the operator determines the order of operation Comments are used to document the software Prepreocessor directives are special operations that occur first Global declarations provide modular building blocks Declarations are the basic operations Function declarations allow for one routine to call another Compound statements are the more complex operations Global variables are permanent and can be shared Local variables are temporary and are private Source files make it easier to maintain large projects
Page 1 of 15
This chapter gives a basic overview of programming in C for an embedded system. We will introduce some basic terms so