Lecture 18: Functions 4
Tuesday, November 01, 2011 Status: complete[Up] [Previous Lecture] [Next Lecture]
Powerpoint Slides: none.
Reading Assigned:
Homework Due: Homework 8
Homework Assigned: Homework 9
Topics Covered:
- Separate compilation
- Classwork 18.
Programs Shown:
- What #include really does: hello.c.txt, include1.c.txt and include2.c.txt.
- A simple example of separate compilation: addi.c.txt, addi.h.txt and addtest1.c.txt.
- A second example of separate compilation: addi.c.txt, addi.h.txt, addten.c.txt, addten.h.txt, and addtest2.c.txt.
- Did not show these programs:
What happens if you include the same header file twice?
Example 1: twice1.c.txt and twice1.h.txt.
Example 2: twice2.c.txt and twice2.h.txt.