Next Page:
2 Basic Concepts
2 Basic Concepts
2.1 A Simple C Program
2.1.1 Developing the Algorithm
2.1.2 Translating the Algorithm to C
2.1.3 Running the Program
2.2 Organization of C Programs - Simple Statements
2.2.1 Comment Statements
Defining a Function ---
main()
2.2.3 Variable Declarations
2.2.4 The Assignment Statement
2.2.5 Generating Output
2.3 Testing the Program
2.3.1 Debugging the Program
2.3.2 Documenting the Code
2.4 Input: Reading Data
2.5 More C Statements
2.5.1 Making Decisions with Branches
2.5.2 Simple Compiler Directives
2.5.3 More on Expressions
A Simple Loop ---
while
2.5.5 Controlling Loop Termination
2.5.6 More Complex Loop Constructs - Nested Loops
2.6 Common Errors
2.7 Summary
2.8 Exercises
2.9 Problems