08.01.2023 Views

Learn to Program with C_ Learn to Program using the Popular C Programming Language ( PDFDrive )

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

■ index

• N, O

Named constants. See Symbolic constants

Nested structure

declaration, 292

Student structure, 292

while condition, 292

Null character, 142

• P, Q

Parallel arrays, 262

C structure, 264

integer array, 262

parallelSort, 263

sorting process, 263

PersonData and VoteCount function, 299

printDate statement, 282

printf statement, 42

printFraction function, 293

printResults function, 299–302

processVotes function, 298

Programming concepts

algorithm (see Algorithm)

analyze problem, 4

assembly language, 2

characters, 11

comments, 17

compiler, 3

computer memory, 9

data types, 10

declare variables, 19

define problem, 3

document program, 9

final point, 20

high-level or problem-oriented

languages, 2

low-level programming

language, 2

machine language, 2

maintenance programmer, 9

output

escape sequence, 16

format string, 17

newline character, 15

printf statement, 14

string constant, 16

program, 1

test and debug program, 8

using algorithm, 6

putc function, 157

• R

Read and print characters

ch statement, 145

code execute, 149–150

EOF, 145

getchar keyword, 145

int variable, 145

non-blank character, 148

printf and getchar returns, 147

program running, 149

scanf keyword, 145

single character, 145

while condition, 150–151

while statement, 149

Read characters, 156–157

Read, search and sort structures

escape sequence, 288–290

getString, 288

input.txt, 291

program, 288

readChar, 288

Relational operators, 66

Repetition logic program

assignment operator, 101–102

count

find average, 99

integer variable, 97

program modification, 97

sequences, 98

description, 91

do…while statement, 132–135

for construct (see for statement)

increment and decrement operators, 100

largest number type

algorithm, 102–103

data entering, 103–104

program running, 102

steps, 102

while loop, 103

largest number typed, 102

multiplication tables, 125–128

payroll system

non-whitespace character, 114

payroll.txt file, 112

program and comments, 115–117

sample data, 113

scanf/fscanf, 114

string concatenation, 114

strcat, 114

strcmp, 115

310

www.it-ebooks.info

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!