Lecture 4: Introduction to C Programming
Wednesday, February 08, 2012[Up] [Previous Lecture] [Next Lecture]
Reading Assigned: 2.1-2.4
Homework Due: Homework 01
Homework Assigned: Homework 02 -- Postponed to next class
Classwork Assigned: Classwork 03 -- Postponed to next class
Topics Covered:
- Fix Firefox cache size (Edit->Preferences->Advanced->Network->Use up to 5 or 10MB)
- Reasons for using hexadecimal
- Tools used in programming
- Editor (nano, emacs, vi)
- Compiler (gcc)
- Linker (gcc)
- Debugger (gdb)
- IDE (eclipse, visual studio)
- First C program hello_world.c
- Parts of a C program
- Directives
- Comments
- Reserved words
- Constants
- Compiling our first program using gcc
- Compiler options (eg -Wall, -o)
- Types of problems encountered in programs
- Syntax errors
- Logic errors
- Control errors
- A more complex C program calc.c
- More parts of a C program
- Identifiers
- Variables
- Arithmetic operators
- A program to get user input input.c