Introduction to C
Course
Online
Description
-
Type
Course
-
Methodology
Online
This is an intensive introduction to ANSI C programming using the GNU C compiler. At the end of the course attendees should be reasonably confident in reading and writing C programs and have a good practical understanding of advanced topics such as the use of C pointers, the relationship between pointers and arrays, as well as dynamic memory allocation and memory management. In addition, they will be able to understand makefiles and version control using RCS and CVS.
Reviews
Subjects
- IT
- C++
Course programme
- How C became
- Getting to know the GNU C compiler
- The basic anatomy of a C program
- Base data types and their sizes
- Constants and declarations
- Variable names
- Arithemetic operators
- Relational and logical operators
- Increment and decrement operators
- Increment and decrement operators
- Assignment operators
- Expressions
- Operator precedence
- Casting and type conversion
- if - else
- switch
- while , do-while and for-loops
- Statements and blocks
- Functions and function prototypes
- Returning values from functions
- External variables and scope rules
- Static variables
- call by value and recursion
- Pointers and addresses
- Pointers as arguments to functions
- Arrays
- The relationship of pointers and arrays
- Pointer arithmetic
- How C deals with multi-dimensional arrays
- Arrays of pointers - their uses and initialisation
- Strings and string functions
- Fundamentals of structures
- Passing structures as arguments to functions
- Returning structures as return values from functions
- Arrays of structures
- Pointers to structures
- Using pointers to structures to pass values to a function and return values from a function
- Typedef and its uses in developing well structured and maintainable code
- Sorting arrays of records
- Allocating and freeing memory (malloc and free)
- Linked lists and queues
- Indexing (table lookup, binary trees, hashing)
- Standard input and standard output
- Formatted output - printf
- Formatted input - scanf
- The dangers of scanf
- File access and file I/O
- An overview of input-output in a windowing environment
- The MACRO pre-processor and how to use it wisely
- Unions
- Bit fields
- Date and Time functions in the C Standard Library
- Diagnostics- the assert macro
- Simple make files
- MACROS in make files
- Use of dummy targets
- Recursive makefiles
- Building and using libraries
- The importance of version control
- RCS and CVS
Introduction to C