-Introduction to C
- What is C?
- Features of C
- Versions of C
- What is C used for?
- C vs. related languages
- Warning: low-level language
-Writing C Programs
- Editing C code
- Compiling a program
- More about gcc
- Debugging
- Using gdb
- Memory debugging
- The IDE - all-in-one solution
- Using Eclipse
-Our First C Program
- Structure of a .c file
- Comments
- The #include macro
- More about header files
- Declaring variables
- Initializing variables
- Arithmetic expressions
- Order of operations
- Function prototypes
- The main() function
- Function definitions
- Our main() function
- Alternative main() function
- More about strings
- Console I/O
- Preprocessor macros
- Defining expression macros
- Conditional preprocessor macros
- Compiling
- Running
- Summary
Topics covered:
• How to edit, compile, and debug C programs
• C programming fundamentals:
• comments
• preprocessor macros, including #include
• the main() function
• declaring and initializing variables, scope
• using puts() – calling a function and passing an argument
• returning from a function