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+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents