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