C Programming Absolute Beginner's Guide (3rd Edition)

(Romina) #1

string variables, 49
strings, 19 , 171


character arrays, 52 - 54
concatenation, 176
control, printf() function, 32
initializing, 54 - 56
length, 51 - 52
mode, fopen(), 270
printing, 33
printing in arrays, 54
string terminator, 50
terminating zero, 50 - 51

strlen() function, 176 - 179
struct statement, 258 - 259


structures, 257 - 258
declaring, 259
defining, 258 - 262
putting data in structure variables, 262 - 265


subscripts, 53
arrays, 196


switch statement, 150 - 154
syntax, code comments, 25 - 27


T


terminating loops, break statement, 142 - 144


terminating zero, strings, 50 - 51
testing data


else statement, 96 - 100
if statement, 92 - 96

tolower() function, 176
toupper() function, 129 , 176 , 240


trigonometric functions, 184 - 186
typecasting, 88 - 89


U-V


updating variables, compound assignment operators, 85 - 86
uppercase letters, defined constant names, 61


vals arrays, 195
values


arrays, putting in, 197 - 199
Free download pdf