CIS 2500 Chapter Notes - Chapter 2: C Data Types, Decimal Mark, Newline

69 views3 pages

Document Summary

Variable names should not begin with an underscore (_) and are case sensitive, the first character must also be a letter. X is not the same variable as x. While an underscore is a letter, library routine names often begin with an underscore. Keywords such as if, else, int, float, etc are reserved and cannot be used as variable names. It is good practice to choose a variable with a name related to its purpose. A single byte; capable of holding only one character. An integer, typically reflecting the natural size of integers on the hose machine. Short and long apply to integers short int sh; long int counter; Thee word int can be skipped in this kind of declaration. Signed and unsigned can be applied to any char or integer. Unsigned numbers are always >= 0 and obey laws of arithmetic modulo 2n, where n is the number of bits in the type.

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