|
|
 |
|
|
|
|
in ctype.h, A3-A5 |
|
|
|
 |
|
|
|
|
including, 103-104 |
|
|
|
 |
|
|
|
|
in math.h, A6-A7 |
|
|
|
 |
|
|
|
|
prototypes for, 342 |
|
|
|
 |
|
|
|
|
in stdlib.h, A8-A9 |
|
|
|
 |
|
|
|
|
in string.h, A9-A10 |
|
|
|
 |
|
|
|
|
Life cycles in programming, 4 |
|
|
|
 |
|
|
|
|
Lifetime of class objects, 846-847 |
|
|
|
 |
|
|
|
|
Lifetime of variables, 397-398 |
|
|
|
 |
|
|
|
|
dynamic, 980 |
|
|
|
 |
|
|
|
|
and initialization, 399-400 |
|
|
|
 |
|
|
|
|
limits.h file, 504-505, A5-A6 |
|
|
|
 |
|
|
|
|
Line feed, escape sequence for, 521 |
|
|
|
 |
|
|
|
|
Linear collections, 648 |
|
|
|
 |
|
|
|
|
Linear searches |
|
|
|
 |
|
|
|
|
in ordered lists, 657-658 |
|
|
|
 |
|
|
|
|
in unordered lists, 649-653 |
|
|
|
 |
|
|
|
|
Linear time execution, 284-286 |
|
|
|
 |
|
|
|
|
Lines, formatting, A36-A37 |
|
|
|
 |
|
|
|
|
Link members in linked lists, 1047 |
|
|
|
 |
|
|
|
|
Linkage specifiers, syntax template for, A16 |
|
|
|
 |
|
|
|
|
Linked lists, 1046-1048 |
|
|
|
 |
|
|
|
|
array representation of, 1048-1050 |
|
|
|
 |
|
|
|
|
classes and, 1079-1081 |
|
|
|
 |
|
|
|
|
copying, 1138-1142 |
|
|
|
 |
|
|
|
|
creating, 1062 |
|
|
|
 |
|
|
|
|
data representation choices for, 1081-1082 |
|
|
|
 |
|
|
|
|
deleting items from, 1050, 1074-1078, 1082, 1109-1110 |
|
|
|
 |
|
|
|
|
dynamic. |
|
|
|
 |
|
|
|
|
See Dynamic linked lists |
|
|
|
 |
|
|
|
|
inserting items into, 1048-1050, 1065-1074 |
|
|
|
 |
|
|
|
|
pointer expressions for, 1078-1079 |
|
|
|
 |
|
|
|
|
printing, 1063-1065, 1135-1137 |
|
|
|
 |
|
|
|
|
recursion with, 1135-1142 |
|
|
|
 |
|
|
|
|
for solitaire simulation, 1093-1109 |
|
|
|
 |
|
|
|
|
sorting, 1082 |
|
|
|
 |
|
|
|
|
testing and debugging, 1062, 1109-1111 |
|
|
|
 |
|
|
|
|
Linkers, 359 |
|
|
|
 |
|
|
|
|
Linking programs, 79, 359, 859-861 |
|
|
|
 |
|
|
|
|
Liquid crystal display (LCD) screens, 16 |
|
|
|
 |
|
|
|
|
LISP language |
|
|
|
 |
|
|
|
|
interpreters in, 11n |
|
|
|
 |
|
|
|
|
parameter passing in, 352 |
|
|
|
 |
|
|
|
|
recursion in, 1120 |
|
|
|
 |
|
|
|
|
Listings, 78 |
|
|
|
 |
|
|
|
|
Lists, 648. |
|
|
|
 |
|
|
|
|
See also Onedimensional arrays |
|
|
|
 |
|
|
|
|
arrays for, 613-619 |
|
|
|
 |
|
|
|
|
in candidate case study, 809-821 |
|
|
|
 |
|
|
|
|
class for, 945-951 |
|
|
|
 |
|
|
|
|
comparing, 613-619 |
|
|
|
 |
|
|
|
|
inserting items into, 659-662 |
|
|
|
 |
|
|
|
|
linked. |
|
|
|
 |
|
|
|
|
See Dynamic linked lists; Linked lists |
|
|
|
 |
|
|
|
|
searching in, 649-653, 657-658, 662-666 |
|
|
|
 |
|
|
|
|
sorting, 653-657 |
|
|
|
 |
|
|
|
|
Literal values |
|
|
|
 |
|
|
|
|
for constants, 59-60 |
|
|
|
 |
|
|
|
|
in enumeration types, 536-537 |
|
|
|
 |
|
|
|
|
syntax template for, A26 |
|
|
|
 |
|
|
|
|
Local scope, 391 |
|
|
|
 |
|
|
|
|
Local variables |
|
|
|
 |
|
|
|
|
in functions, 338-339 |
|
|
|
 |
|
|
|
|
lifetime of, 397-398 |
|
|
|
 |
|
|
|
|
scope of, 390-395 |
|
|
|
 |
|
|
|
|
Location, parameter passing by, 351 |
|
|
|
 |
|
|
|
|
log function, A7 |
|
|
|
 |
|
|
|
|
log10 function, A7 |
|
|
|
 |
|
|
|
|
Logarithmic order, 668 |
|
|
|
 |
|
|
|
|
Logarithmic time, 286 |
|
|
|
 |
|
|
|
|
Logging off from mainframes, 81 |
|
|
|
 |
|
|
|
|
Logging on to mainframes, 77 |
|
|
|
 |
|
|
|
|
Logic |
|
|
|
 |
|
|
|
|
errors in, 79-81, 240 |
|
|
|
 |
|
|
|
|
symbolic, 198-199 |
|
|
|
 |
|
|
|
|
Logical execution order, 254 |
|
|
|
 |
|
|
|
|
Logical expressions, 188-196 |
|
|
|
 |
|
|
|
|
evaluating, 200-201 |
|
|
|
 |
|
|
|
|
logical operators in, 193-196 |
|
|
|
 |
|
|
|
|
relational operators for, 190-193 |
|
|
|
 |
|
|
|
|
syntax template for, A22 |
|
|
|
 |
|
|
|
|
Logical implication operator, 307, 476 |
|
|
|
 |
|
|
|
|
Logical operators |
|
|
|
 |
|
|
|
|
in assertion comments, 355 |
|
|
|
 |
|
|
|
|
in logical expressions, 193-196 |
|
|
|
 |
|
|
|
|
with pointers, 978-979 |
|
|
|
 |
|
|
|
|
long data types |
|
|
|
 |
|
|
|
|
constants, 505, 508 |
|
|
|
 |
|
|
|
|
floating point, 55-56, 508 |
|
|
|
 |
|
|
|
|
integral, 53-54, 503-505 |
|
|
|
 |
|
|
|
|
range of values for, 504, 508 |
|
|
|
 |
|
|
|
|
using, 533 |
|
|
|
 |
|
|
|
|
LONG_MAX constant, 505, A5 |
|
|
|
 |
|
|
|
|
LONG_MIN constant, 505, A6 |
|
|
|
 |
|
|
|
|
Long words, 9 |
|
|
|
 |
|
|
|
|
Loop control variables, 258-259, 275 |
|
|
|
 |
|
|
|
|
Loop entry, 256-257 |
|
|
|
 |
|
|
|
|
Loop invariants, 305-310 |
|
|
|
 |
|
|
|
|
as comments, 475-479 |
|
|
|
 |
|
|
|
|
for out-of-bounds array indices, 600 |
|
|
|
 |
|
|
|
|
Loops,13-14, 254-256 |
|
|
|
 |
|
|
|
|
for arrays, 714-720, 726 |
|
|
|
 |
|
|
|
|
choosing, 475 |
|
|
|
 |
|
|
|
|
count-controlled, 257-259, 274-275, 279-280 counting in, 266, 268-269 |
|
|
|
 |
|
|
|
|
designing, 273-277, 281-283 |
|
|
|
 |
|
|
|
|
do-while, 464-468 |
|
|
|
 |
|
|
|
|
efficiency in, 284-286, 821 |
|
|
|
 |
|
|
|
|
event-controlled, 259-265, 275-276 |
|
|
|
 |
|
|
|
|
exiting, 256-257, 274, 277, 472-475 |
|
|
|
 |
|
|
|
|
flow of control in, 274 |
|
|
|
 |
|
|
|
|
for, 468-471 |
|
|
|
 |
|
|
|
|
infinite. |
|
|
|
 |
|
|
|
|
See Infinite loops |
|
|
|
 |
|
|
|
|
nested, 254, 277-283, 714-716 |
|
|
|
 |
|
|
|
|
phases in, 256-257 |
|
|
|
 |
|
|
|
|
process within, 276 |
|
|
|
 |
|
|
|
|
and recursion. |
|
|
|
 |
|
|
|
|
See Recursion |
|
|
|
 |
|
|
|
|
subtasks in, 265-269 |
|
|
|
 |
|
|
|
|
summing in, 266-268 |
|
|
|
|
|