CIS 1057 Chapter Notes - Chapter 2: C Standard Library, Reserved Word, In C

22 views3 pages

Document Summary

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. Furthermore, identifiers should be consistent, and different identifiers should not have similar names. A name associated with a memory cell whose value can change as the program executes. Declaring a variable tells the compiler the names of the variables, what type of data the variables will store, and how the information will be stored. In c, every variable must first be declared.

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