08.01.2023 Views

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents

About the Authorxv

About the Technical Reviewerxvii

Acknowledgmentsxix

Prefacexxi

■Chapter ■ 1: Elementary Programming Concepts 1

1.1 Programs, Languages, and Compilers ........................................................................ 1

1.2 How a Computer Solves a Problem ............................................................................ 3

1.2.1 Define the Problem ........................................................................................................................ 3

1.2.2 Analyze the Problem ...................................................................................................................... 4

1.2.3 Develop an Algorithm to Solve the Problem .................................................................................. 4

1.2.4 Write the Program for the Algorithm .............................................................................................. 6

1.2.5 Test and Debug the Program ......................................................................................................... 8

1.2.6 Document the Program.................................................................................................................. 9

1.2.7 Maintain the Program .................................................................................................................... 9

1.3 How a Computer Executes a Program ........................................................................ 9

1.4 Data Types ................................................................................................................ 10

1.5 Characters ................................................................................................................ 11

1.6 Welcome to C Programming ..................................................................................... 12

1.6.1 Run the Program .......................................................................................................................... 13

1.6.2 A Word on Program Layout .......................................................................................................... 14

vii

www.it-ebooks.info

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

Saved successfully!

Ooh no, something went wrong!