Introduction to C

  1. A history of C
  2. Basic programming operations
  3. Basic structure of a C program
  4. Working with numbers
    1. Numeric data types
      1. Integers
        1. The long modifier
      2. Signed and unsigned variables
      3. Floating-point numbers
        1. Double and long double
  5. Variables
    1. Initializing variables
    2. Assignment statements
    3. Combination assignments
    4. Naming names
    5. Fielding an input value: sscanf
    6. Displaying a variable's value
      1. Type conversion in printf
      2. Formatting with escape \ sequences
    7. Arithmetic operators
    8. Arithmetic and type conversion
      1. Typecasting
    9. Combining arithmetic and assignment
    10. Increment and decrement
    11. Working bit by bit
  6. Expressions
    1. Evaluating an expression
    2. Assigning a value in an expression
  7. Characters and Strings
    1. Input and output for single characters
    2. Displaying a character
    3. Displaying character strings
  8. Testing conditions and making choices
    1. Using relational operators
    2. Using logical operators
    3. Branching with if and if...else
    4. Multiple choices with if...else
    5. Multiple choice tests: switch
  9. Repeating execution with loops
    1. The while loop
    2. The do while loop
    3. The for loop
    4. Break and continue
    5. The goto statement
    6. Nested loops
    7. Choosing appropriate loops
  10. Program design with functions and macros
    1. Defining your own macros
      1. The function prototype
        1. Function declarations under Kernighan and Ritchie
      2. The function definition
      3. Processing within the function
      4. The function return value
      5. Using the return value
    2. Multifunction programs
      1. Function prototypes and global declarations
      2. Setting up the graphics display
      3. Calculating the graphics coordinates
      4. Drawing the planets
    3. Header files, functions, and libraries
    4. Scope and duration of variables
      1. Scope
      2. Duration
    5. Using constant values
    6. Using macros to hide details
  11. Building data structures
  12. Declaring and initializing an array
    1. Arrays with multiple dimensions
    2. Arrays and strings
    3. Defining string variables
    4. Renaming types
    5. Enumerated types
    6. Combining data into structures
    7. Using parts of a structure
  13. Building proper declarations
  14. Pointers
    1. Declaring and using a pointer
    2. Pointers and strings
    3. Pointer arithmetic
    4. Pointers, structures, and lists
    5. Using pointers to return values from functions
  15. Using system resources
    1. Using files and streams
      1. Opening a stream
      2. Writing to the file
      3. Reading from the file