Appendix A: Reference Tables
Table A-1. Escape Sequences in C
Character | Escape Sequence | ASCII value |
---|---|---|
bell (alert) | \a | 007 |
backspace | \b | 008 |
tab | \t | 009 |
newline (line feed) | \n | 010 |
form feed | \f | 012 |
carriage return | \r | 013 |
double quote, inserts a double quote | \" | 034 |
single quote, inserts a single quote | \' | 039 |
question mark, inserts a question mark | \? | 063 |
backslash, inserts a backslash | \\ | 092 |
null | \0 | 000 |
Table A-2. Basic Data Types in C
Basic Data Type | Size in Bits | Range of Values |
---|---|---|
char | 8 | -128 to 127 |
int | 16 | -32,768 to 32,767 |
float | 32 | -3.4e-38 to -3.4e+38, 0, 3.4e-38 to 3.4e+38 |
double | 64 | -1.7e-307 to -1.7e+308, 0, 1.7e-307 to 1.7e+308 |
Table A-3. Qualified Basic Data Types in C
Basic Data Type | Size in Bits | Range of Values |
---|---|---|
signed char | 8 | -128 to 127 |
unsigned char | 8 | 0 to 255 |
signed int | 16 | -32,768 to 32,767 ... |
Get C Recipes: A Problem-Solution Approach now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.