Programming in C

(Barry) #1
528 main( ) function

main( ) function, 120
command-line arguments, 380-381
program syntax, 13
make utility, programming
functionality, 343-344
malloc( ) function, 386, 481
dynamic memory allocation, 384-385
math functions, 482-487
math.h header file, 482
members (unions)
arithmetic rules, 376
defining, 376
memchr( ) function, 472
memcmp( ) function, 472
memcpy( ) function, 472
memmove( ) function, 472
memory, dynamic memory allocation,
383-384
calloc( ) function, 386
free( ) function, 387-388
functions, 481
linked lists, 387-388
malloc( ) function, 386
returning memory to system, 387-388
sizeof operator, 385-386
memory addresses (pointers), 274-276
memory functions, 472
message expressions (OOP), 412-413
methods, classes (OOP), 412-413
getters, 417
setters, 417
Metrowerks Web site, 503
MinGW Web site, 502
minimum( ) function, 138
minus sign (-), arithmetic operator,
30-33
modf( ) function, 486
modifiers, C language specifications,
439

Modifying the Dictionary Lookup
Using Binary Search (Program
10.10), 224-227
modular programming
file organization, 333-334
header files, use of, 341-342
IDE (Integrated Development
Environment), 334
multiple source files, compiling from
command line, 334-336
modules, 333
communicating between
include files, 341-342
static variables, 339-340
compiling, 334-336
external variables, communicating
between, 336-338
prototype declarations, communicating
between, 336
modulus (%) arithmetic operator,
35-36
More Examples with Arithmetic
Operators (Program 4.3), 33-34
More on Calling Functions (Program
8.3), 122
More on Working with Defines
(Program 13.2), 302-303
More Pointer Basics (Program 11.2),
238
most significant bit, 279
multidimensional arrays, 113-114,
433-434
declaring, 114
initializing, 114-115
Multidimensional Variable-Length Arrays
(Program 8.13A), 150-152
passing to functions, 146-152
variable-length, 150-152
Multidimensional Variable-Length
Arrays (Program 8.13A), 150-152
multiple expressions, use in for loops,
55

25 0672326663 index 6/10/04 2:04 PM Page 528

Free download pdf