Sams Teach Yourself C in 21 Days

(singke) #1
modulus operator, 67
mortgage calculator, 562
multidimensional arrays
determining size of elements, 392
passing to a function with a pointer, 394
pointer arithmetic, 393
random.c, 185
relationship to pointers, 391
multiply.c, 30
numeric nature of char variables, 225
OverloadDemo.java program, 731-732
passing arrays to functions, 212-215
pointer arithmetic, 207
pointer usage, 199-200
pointers to functions, 408
calling different functions, 409
controlling sort order, 413
passing pointers as arguments, 411
PopUpDemo.java sample program, 756-758,
777
PopUpWindow class definition, 755-756
preprocessor header files, 609
preprocessor directives, # operator in macro
expansion, 604
printf() function, 365
displaying numerical values, 154
escape sequences, 150
printing, 25-27
printing extended ASCII characters, 226
putchar() function, 359
puts() function, 236, 361
reading text files, 745-746
redirecting input and output, 369
relational expressions, 79
scanf() function, 242-243, 356
reading numerical values, 158
searching/sorting functions
qsort/bsearch, 551-553
Sending output to the printer, 371
shift operators, 583

string manipulation
comparing with strcmp() function, 491
comparing with strncmp() function, 493
concatenating with strcat() function, 488
concatenating with strncat() function, 489
converting case, 501, 510
converting to double type, 505
copying with automatic memory alloca-
tion, 486
isxxxx() macros, 507
search for string in string, 499
searching for nonmatching characters, 498
searching for set of characters, 497
searching for single characters, 495
strcpy() function, 483
strncpy() function, 485
strset()/strnset() functions, 503
strings, determining string length, 482
structures
accessing successive array elements by
incrementing a pointer, 272
arrays as members, 258
arrays of, 261
nesting, 255
passing as function argument, 274
structures of arrays, 258-259
structures of structures, 255-256
structures, passing to functions, 274
switch statement, 321-326
time functions, 541-543
type conversions, integer division, 569
unary.c, 65
union members, accessing, 276-277
unions, 279-280
wrong use example, 276
using fopen() function, 443-444
using fprintf() function, 446-447
using ftell() and rewind(), 458
using fwrite() and fread(), 453
using sleep(), 219-220

listings 915

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

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

Free download pdf