Go BackC in 21 Days: Week 1

Synopsis
C in 21 Days: Week 1 begins with a basic explanation of C components and quickly progresses to writing and debugging C programs.  Sample listings, complete with sample output and an analysis of code, illustrate the topics of the day.

Audience
This course is for the beginning programmer or for the experienced programmer who wants to learn C.

Time
8 - 12 hours

Product Code: CLGC01
After completing C in 21 Days: Week 1, the user should be able to:
 
Use numeric variables and constants
Use operators to manipulate C expressions
Implement functions and apply the principles of structured programming
Make programs interact with the keyboard and screen
Control the flow of programs
Write simple C programs
Build, compile and test programs

Day 1: Getting Started
Discusses why C is the best choice among programming languages.  Identifies the steps in the program development cycle.  Explains how to write, compile and run a C program.  Inspects error messages generated by the compiler and linker.

Day 2: The Components of a C Program
Analyzes the parts of a C program.  Demonstrates the purpose of each program component.  

Day 3: Numeric Variables and Constants
Covers how to create variable names in C.  Explains the use of different types of numeric variables.  Examines the differences and similarities between character and numeric values.  Shows how to declare and initialize numeric variables.  Identifies C's two types of numeric constants.

Day 4: Statements, Expressions, and Operators
Describes what statements and expressions are.  Identifies C's mathematical, relational, and logical operators.  Explains operator precedence.  Introduces the if statement.

Day 5: Functions — The Basics
Examines what a function is and what its parts are.  Reviews the advantages of structured programming with functions.  Shows how to create a function and declare local variables in a function.  Demonstrates how to return a value from a function to the program and how to pass arguments to a function.

Day 6: Basic Program Control
Explains how to use simple arrays.  Demonstrates how to use for, while, and do...while loops to execute statements multiple times.  Discusses how to nest program control statements.

Day 7: Basic Input/Output
Explains C's input and output statements.  Illustrates how to display information on the screen with the printf() and puts() library functions.  Demonstrates how to format the information that is displayed on the screen.  Shows how to read data from the keyboard with the scanf() library function.

Week 1 in Review
Presents a program that uses the skills learned during the week.

Reference
Provides reference tables for the ASCII character chart, C reserved words, and binary and hexadecimal notation.  Lists example programs.
This course includes the following materials:

    C Glossary
    Files of sample program listings and answers to programming exercises

 

Go Back