Navigation

  • index
  • next |
  • previous |
  • Applications in C for Engineering Technology »
  • 6. Topic 5 - Pointers, Arrays and Strings

6. Topic 5 - Pointers, Arrays and Strings¶

Contents:

  • 6.1. Basics of pointers
    • 6.1.1. Two pointer operators
    • 6.1.2. Pointer Examples
    • 6.1.3. Pointers in function arguments
    • 6.1.4. Casts with pointers
    • 6.1.5. Pointer arithmetic
  • 6.2. Arrays
    • 6.2.1. Declaring arrays
    • 6.2.2. An Array Example
    • 6.2.3. Pointers and Arrays
    • 6.2.4. Passing Arrays to Functions
  • 6.3. Multi-dimensional arrays
    • 6.3.1. A 2 dimensional array
    • 6.3.2. A 3 dimensional array
  • 6.4. Strings
    • 6.4.1. Initializing a string
    • 6.4.2. String Example
    • 6.4.3. Command Line Arguments
  • 6.5. The string library
    • 6.5.1. String Manipulations
    • 6.5.2. Example Use of strtod and strtol
    • 6.5.3. Useful Character Tests
  • 6.6. Dangers of Buffer overflows
  • 6.7. String Example - ReadLine
  • 6.8. A trick to describe complex data types
  • 6.9. Dynamic memory allocation
    • 6.9.1. Dynamically Allocating a Multi-dimensional Array
    • 6.9.2. Allocating More Memory
  • 6.10. Pointers to Functions
    • 6.10.1. Example - Arbitrary string sorting

Logo

Previous topic

5.7. Recursion

Next topic

6.1. Basics of pointers

This Page

  • Show Source

Quick search

«

Navigation

  • index
  • next |
  • previous |
  • Applications in C for Engineering Technology »
  • 6. Topic 5 - Pointers, Arrays and Strings
© Copyright Creative Commons License, Tim Bower. Created using Sphinx 7.2.6.