Sams Teach Yourself C in 21 Days

(singke) #1
Q-R

qsort() function, 550
quicksort algorithm, 550
quotation marks
format strings, 148

radians, trigonometric functions, 533
RAM, 42, 570. See alsomemory
address, 196
random file access
versus sequential, 457
fseek() function, 460, 463
ftell()/rewind() functions, 458-460
random.c, 185
reading
strings, 237
gets() function, 237-241
scanf() function, 241-243
structures, portability, 816
text files, 745-746
reading file data, 445
readLine method, 745
realloc() function, 575-577
rectangles, nested structures of, 254
recursion
calling functions, 116-118
indirect, 116
redirecting input/output, 368-370
redirection command, 606
redirection operator (<<), 650
register keywords, 295
register variables, 295
registers, 295
relational operators, 71
evaluating, 78
precedence, 80
remove() function, 465
rename() function, 466

renaming files, 466-467
reserved words, 9, 789, 791
return keyword, 111
return statements, 100, 111-112
of functions, 102
return types, of functions, writing, 105
reusing code, OOP, 631
rewind() function, 458-460
Ritchie, Dennis, 7
running programs, 35

S

samples.Seelistings
scanf() function, 32, 157, 160-161, 241-243
arguments, 161
listing, 242-243
scanf() function, 356-358
arguments, 350-352
conversion specifiers, 350-352
handling extra characters, 352-355
precision modifiers, 352
scope, 286-288
external compared to external static, 295
external variables, 289
function parameters, 294
screen output, 358
character output functions, 358-360
fputc() function, 360
putc() function, 360
putchar() function, 358-360
formatted output functions, 361-368
string output functions, 360-361
searching library functions
bsearch, 549
example, 550-553, 556
searching strings, 494
strchr() function, 495
strcspn() function, 496

searching strings 923

How can we make this index more useful? Email us at [email protected]

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

Free download pdf