Sams Teach Yourself C in 21 Days

(singke) #1
variable scope, 286-287
variable size program, 46
variables/constants, 54
void pointers, 521-522
writing text files, 747-748
ListOfNumbers class, 737-738
lists, adding elements, 418
literal constants, 51
declaring arrays, 181
literal string constants, white space, 61
literal strings, 228
literal text, 148
local scope, 294
local variables, 100, 110, 288, 291
blocks, 297, 299
creating, 291-296
main function, 296
of functions, writing, 108-110
static versus automatic, 291-294
localtime() function, 538
log() function, 534
log10() function, 535
logarithmic functions, 534
logical operators, 81-83, 584
long type, converting strings to, 504
looping
infinite loops, 316-319
linked lists, 425
terminating early, 310
break statement, 310-312
continue statement, 312-313
loops
do...while, structure, 139
do, while, 138-142
for, 125-127
nesting, 142-143
indenting styles, 143
lowercase
ANSI support for, 510
converting to, 501

M

machine language, 12
macros, 510
character-test, 507
expansion, viewing, 605
function, #define directive, 602-605
predefined, 611
substitution, #define directive, 601
versus functions, 605
main() function, 31, 104, 110, 118-119
command-line arguments, 612
external variables, 288
Java, 644
local variables, 291, 296
main modules, 594
make files, 600
make utility, modular programming, 600
malloc() function, 571-573
arrays of pointers, 404
copying strings, 483
linked lists, 420
listing, 233-234
strings, 230-235
manifest constants. Seesymbolic constants
math functions, 533
examples of, 536
exponential, 534
hyperbolic, 535
miscellaneous, 535
trigonometric, 534
mathematical operators
binary, 66-69
unary, 64-66
maximum/minimum values, data types, 803-
809
member functions, C++, 670-673
member methods, 769
member operator (.), 263, 276, 673. See also
dot operator (.)

916 listings

51 448201x-Index 8/13/02 11:23 AM Page 916

Free download pdf