CIS 1057 Chapter 2: CIS 1057 Book Notes 3

17 views3 pages

Document Summary

Every c program has a main function. The remaining lines of the program are the body. Declarations, which tell the compiler what memory cells are needed. Executable statements, which are instructions the compiler will translate into machine code, to be executed. Words with special meanings in the c language. Standard identifiers may be redefined, but this prevents original use. Identifiers defined by the user that name memory cells (which hold data, program results, operations, etc) They may only consist of letters, numbers, and underscores. A c reserved word cannot be used as an identifier. An identifier defined in a c standard library should not be redefined (guideline, not rule) **some compilers only check for identifier variance within the first 31 characters*** It is important for code to be easily readable to ensure that it can be read and maintained by the original programmer/other programmers over time. Therefore, it is important to be consistent when naming identifiers.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents