Course Content
Using C with UNIX
- Writing the Program
- Compiling the Program
- The C Compiler (cc)
- Make, a Program Builder
- Improved Type Checking Using Link
- Running the Program
Constant and Variable Types
- Variables
- Variable Names
- Global Variables
- External Variables
- Static Variables
- Constants
- Arrays
Expressions and Operators
- Assignment Statement
- Arithmetic operators
- Type conversion
- Comparison
- Logical Connectors
Control Statements
- The if else Statement
- The switch Statement
- Loops
- The while Loop
- The do while Loop
- The for Loop
- The break Statement
- The continue Statement
- The goto Statement
Functions in C
- Scope of Function Variables
- Modifying Function Arguments
Pointers in C
- Arrays and Pointers
- Recursive Functions
- Pointers in C
- What is a pointer ?
- Advantages of a pointer
- Declaring pointers
- Using pointers to access the memory locations
- Changing pointers
- Passing and returning pointers to and from the functions
- Pointers to arrays
- Changing pointers
- Passing and returning pointers to and from the functions
- Pointers to arrays
Dynamic Memory Allocation
- Why dynamic memory allocation ?
- Allocating memory dynamically with malloc ()
- Using realloc ()
- Using calloc()
- Working with strings in a dynamically allocated memory.
Input and Output
- The Standard Input Output File
- Character Input / Output
- getchar
- putchar
- Formatted Input / Output
- printf
- scanf
- Whole Lines of Input and Output
- gets
- puts
Handling Files in C
- UNIX File Redirection
- C File Handling - File Pointers
- Standard file pointers in UNIX>
- Closing a file using fclose
- Input and Output using file pointers
- Character Input and Output with
- Files
- Formatted Input Output with File
- Pointers
- Formatted Input Output with Strings
- Whole Line Input and Output using
- File Pointers
- Special Characters
- NULL, The Null Pointer or Character
- EOF, The End of File Marker
- Other String Handling Functions
Structures in C
- Defining a Structure
- Accessing Members of a Structure
- Structures as Function Arguments
- Further Uses of Structures