Sams Teach Yourself C in 21 Days

(singke) #1
compound assignment operators, 85
compound statements, 61
concatenating strings
strcat() function, 487
strncat() function, 489
concatenation operator (##), 604
condition expression, 125
conditional compilation
defined operator, 609
preprocessor directives, 607
conditional debugging, #if...#endif directive,
608
conditional operator, 86
const keyword, 53-55
declaring arrays, 181
variable scope, 286
constants, 52-56
ANSI-defined, 808
BLOCKSIZE, 578
float.h header file, 805-806
floating-point, 51
limits.h header file, 804-805
literal, 51
pointer constants, 208
portability with non-ANSI features, 817-819
predefined, 817
symbolic, 52-55
constructors, 684-686
inheritance order of operation, 696-698
Java classes, 733-736
subclasses, 695-696
continue statement, 312-313
conversion characters
fprintf() function, 362-363
printf() function, 362-363
conversion specifiers, 149
%d, 152
%f, 153
%s, 237
%u, 152

arguments, 155
multi-argument functions, 524
printf() function, 152-154
scanf() function, 350-352
strftime() function, 540-541
copying
array of structures contents, 261
files, 467, 470
strings, 483-486
copy_file function, 468
cos() function, 534
cosh() function, 535
counting characters, 475-477
cout object, 639, 651
CPU, register variables, 295
creating
C# programs, 771-773
class properties, 725-727
external variables, 288-290
local variables, 291-296
programs
using C, 10
using Dev-C++, 885
source code, 10
Web applications using C#, 776-777
ctime() function, 539
ctype.h, character test functions, 506
CTYPE.H header file, 813

D

__DATE__ constant, 817
__DATE__ macro, 611
data types, 48. See alsotype conversions, 566
arrays, size of, 188
C++, 653
C++ structures, 666

900 compound assignment operators

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

Free download pdf